Re: [FFmpeg-devel] [PATCH v2] libavcodec/riscv:add RVV optimized for idct_32x32_8:

2025-05-05 Thread daichengrong
ping~ From: daichengrong riscv/hevcdsp_idct_rvv: Optimize idct_32x32_8 On Banana PI F3: hevc_idct_32x32_8_c:118945.0 ( 1.00x) hevc_idct_32x32_8_rvv_i64: 28503.7 ( 4.17x) Signed-off-by: daichengrong --- lib

[FFmpeg-devel] [PATCH 01/11] avcodec/vulkan_encode_h264: Fix memleak on error

2025-05-05 Thread Andreas Rheinhardt
Patches attached. - Andreas From 84c03ef85ef01a9109e99d915e1b2b1cab30cfd8 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 5 May 2025 21:14:32 +0200 Subject: [PATCH 01/11] avcodec/vulkan_encode_h264: Fix memleak on error Signed-off-by: Andreas Rheinhardt --- libavcodec/vulkan_encod

[FFmpeg-devel] [PATCH 2/2] tests/fate/filter-video: Fix dependancy for codecview

2025-05-05 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- tests/fate/filter-video.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak index 542b7e6c879..df8a9327506 100644 --- a/tests/fate/filter-video.mak +++ b/tests/fate/filter-video.ma

[FFmpeg-devel] [PATCH 0/2] FFmpeg Source plugin experiment

2025-05-05 Thread Michael Niedermayer
This patch set will remove libpostproc from FFmpeg resulting in a master branch like: https://github.com/michaelni/FFmpeg/tree/experiment-sourceplugin-master matching this, libpostproc can trivially become a source plugin like here: https://github.com/michaelni/FFmpeg/tree/experiment-sourceplugin

Re: [FFmpeg-devel] [PATCH] tests/fate/cbs: add tests for APV

2025-05-05 Thread James Almer
On 5/5/2025 5:59 PM, Mark Thompson wrote: On 05/05/2025 18:13, James Almer wrote: Ensure bitexact passthrough using the apv_metadata bsf. Signed-off-by: James Almer --- tests/fate/cbs.mak| 11 +++ tests/ref/fate/cbs-apv-profile_422-10 | 1 + 2 files changed, 12

Re: [FFmpeg-devel] [PATCH] tests/fate/cbs: add tests for APV

2025-05-05 Thread Mark Thompson
On 05/05/2025 18:13, James Almer wrote: > Ensure bitexact passthrough using the apv_metadata bsf. > > Signed-off-by: James Almer > --- > tests/fate/cbs.mak| 11 +++ > tests/ref/fate/cbs-apv-profile_422-10 | 1 + > 2 files changed, 12 insertions(+) > create mode 1006

[FFmpeg-devel] [PATCH] avcodec/pcm-dvdenc: always assert switch default cases

2025-05-05 Thread Marvin Scholz
Fixes the following warning when building with assertions disabled: warning: variable 'quant' is used uninitialized whenever switch default is taken --- libavcodec/pcm-dvdenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/pcm-dvdenc.c b/libavcodec/pcm-

[FFmpeg-devel] [PATCH] avformat/apvdec: remove unused variable

2025-05-05 Thread Marvin Scholz
--- libavformat/apvdec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavformat/apvdec.c b/libavformat/apvdec.c index e53c9ed085..1e5497bcd3 100644 --- a/libavformat/apvdec.c +++ b/libavformat/apvdec.c @@ -53,7 +53,6 @@ static int apv_extract_header_info(GetByteContext *gbc) if (inf

[FFmpeg-devel] [PATCH 2/2] lavc: Add unit test for APV entropy decode

2025-05-05 Thread Mark Thompson
--- libavcodec/Makefile | 1 + libavcodec/tests/apv.c| 449 ++ tests/fate/libavcodec.mak | 5 + 3 files changed, 455 insertions(+) create mode 100644 libavcodec/tests/apv.c diff --git a/libavcodec/Makefile b/libavcodec/Makefile index cae8f3a9f1..

[FFmpeg-devel] [PATCH 1/2] apv_decode: Multisymbol entropy decode

2025-05-05 Thread Mark Thompson
--- Decode up to four symbols per step with larger lookup tables. This is highly finicky because a lot of internal state has to be tracked and it therefore doesn't fit at all into the existing multisymbol VLC strcture. On a big core (Alder Lake P core) this makes the whole decoder 30-90% faster

[FFmpeg-devel] [PATCH 2/2] rtpdec: Set bitrate for pcm-mulaw audio

2025-05-05 Thread Marvin Scholz
From: Erik Linge Signed-off-by: Marvin Scholz Co-authored-by: Marvin Scholz --- libavformat/rtpdec.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index 10e9502ae2..9d3014b0e0 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c

[FFmpeg-devel] [PATCH 1/2] rtpdec: add fmtp parsing of sprop-maxcapturerate for opus

2025-05-05 Thread Marvin Scholz
From: Erik Linge Co-authored-by: Marvin Scholz Signed-off-by: Marvin Scholz --- libavformat/Makefile | 1 + libavformat/rtpdec.c | 8 + libavformat/rtpdec_formats.h | 1 + libavformat/rtpdec_opus.c| 62 4 files changed, 65 inserti

[FFmpeg-devel] [PATCH] tests/fate/image: add a test for half-float dwab compressed stream

2025-05-05 Thread James Almer
Signed-off-by: James Almer --- tests/fate/image.mak| 3 +++ tests/ref/fate/rgb-scanline-dwab-half-float | 6 ++ 2 files changed, 9 insertions(+) create mode 100644 tests/ref/fate/rgb-scanline-dwab-half-float diff --git a/tests/fate/image.mak b/tests/fate/image.mak in

[FFmpeg-devel] [PATCH] avutil/hwcontext_vulkan: Query the correct format

2025-05-05 Thread Link Mauve
In the call to vkGetPhysicalDeviceImageFormatProperties2(), we were previously requesting the properties of the first fallback format (e.g. VK_FORMAT_R8_UNORM for VK_FORMAT_G8_B8R8_2PLANE_420_UNORM) instead of the actual format in use. We don’t do anything with it afterwards, but there is no reaso

[FFmpeg-devel] [PATCH] tests/fate/cbs: add tests for APV

2025-05-05 Thread James Almer
Ensure bitexact passthrough using the apv_metadata bsf. Signed-off-by: James Almer --- tests/fate/cbs.mak| 11 +++ tests/ref/fate/cbs-apv-profile_422-10 | 1 + 2 files changed, 12 insertions(+) create mode 100644 tests/ref/fate/cbs-apv-profile_422-10 diff --git a/t

Re: [FFmpeg-devel] [PATCH] postproc/tests/.gitignore: Add temptest

2025-05-05 Thread Michael Niedermayer
On Sun, May 04, 2025 at 05:47:59PM +0200, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > libpostproc/tests/.gitignore | 1 + > 1 file changed, 1 insertion(+) will apply [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB No human being wil

Re: [FFmpeg-devel] [PATCH] libpostproc/tests: Factor ff_chksum() out

2025-05-05 Thread Michael Niedermayer
On Mon, May 05, 2025 at 02:50:35PM +0200, Andreas Rheinhardt wrote: > Michael Niedermayer: > > Signed-off-by: Michael Niedermayer > > --- > > libpostproc/Makefile | 6 ++ > > libpostproc/test_utils.c | 38 ++ > > libpostproc/test_utils.h

Re: [FFmpeg-devel] [PATCH 2/6] apv_decode: Fix memory leak on decode error

2025-05-05 Thread Mark Thompson
On 03/05/2025 23:46, James Almer wrote: > On 5/3/2025 2:55 PM, Mark Thompson wrote: >> --- >>   libavcodec/apv_decode.c | 7 +-- >>   1 file changed, 5 insertions(+), 2 deletions(-) >> >> diff --git a/libavcodec/apv_decode.c b/libavcodec/apv_decode.c >> index b1e1db7d64..2a59c9b25d 100644 >> ---

Re: [FFmpeg-devel] [PATCH] aactab: add and initialize 2D VLC tables for USAC Mps212

2025-05-05 Thread Lynne
On 05/05/2025 16:57, Andreas Rheinhardt wrote: Lynne: On 05/05/2025 15:52, Andreas Rheinhardt wrote: Lynne: ---   libavcodec/aac/aacdec_tab.c |   54 ++   libavcodec/aactab.c | 1820 +++   libavcodec/aactab.h |   20 +   3 files changed, 1894 in

Re: [FFmpeg-devel] [PATCH] aactab: add and initialize 2D VLC tables for USAC Mps212

2025-05-05 Thread Andreas Rheinhardt
Lynne: > On 05/05/2025 15:52, Andreas Rheinhardt wrote: >> Lynne: >>> --- >>>   libavcodec/aac/aacdec_tab.c |   54 ++ >>>   libavcodec/aactab.c | 1820 +++ >>>   libavcodec/aactab.h |   20 + >>>   3 files changed, 1894 insertions(+) >>> >> >> 1. This s

Re: [FFmpeg-devel] [PATCH] aactab: add and initialize 2D VLC tables for USAC Mps212

2025-05-05 Thread Lynne
On 05/05/2025 15:52, Andreas Rheinhardt wrote: Lynne: --- libavcodec/aac/aacdec_tab.c | 54 ++ libavcodec/aactab.c | 1820 +++ libavcodec/aactab.h | 20 + 3 files changed, 1894 insertions(+) 1. This should only be applied if it is used

Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface

2025-05-05 Thread Nicolas George
Stefano Sabatini (HE12025-05-04): > I don't understand this claim. There is a root, and each section can > have several subsections, so it is a tree in my view, although we set > a maximum depth. Where am I wrong? Are we looking at the same thing? In ffprobe's output, we have sections “packets”, “

Re: [FFmpeg-devel] [PATCH] aactab: add and initialize 2D VLC tables for USAC Mps212

2025-05-05 Thread Andreas Rheinhardt
Lynne: > --- > libavcodec/aac/aacdec_tab.c | 54 ++ > libavcodec/aactab.c | 1820 +++ > libavcodec/aactab.h | 20 + > 3 files changed, 1894 insertions(+) > 1. This should only be applied if it is used which this patch does not. > diff --git a/

Re: [FFmpeg-devel] [PATCH] libpostproc/tests: Factor ff_chksum() out

2025-05-05 Thread Andreas Rheinhardt
Michael Niedermayer: > Signed-off-by: Michael Niedermayer > --- > libpostproc/Makefile | 6 ++ > libpostproc/test_utils.c | 38 ++ > libpostproc/test_utils.h | 27 > libpostproc/tests/blocktest.c | 18 ++-

[FFmpeg-devel] [PATCH] fftools/ffmpeg_dec: Always receive frames from decoder

2025-05-05 Thread Andreas Rheinhardt
Patch attached. - Andreas From b409d3603879068dde860117fb2f0a5ba1840154 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 5 May 2025 14:13:58 +0200 Subject: [PATCH] fftools/ffmpeg_dec: Always receive frames from decoder Up until now if avcodec_send_packet() returned an error, no attem

Re: [FFmpeg-devel] [PATCH] configure: Enable -fno-common for Darwin targets, avoid linker warnings

2025-05-05 Thread Marvin Scholz
On 5 May 2025, at 10:45, Martin Storsjö wrote: > On Fri, 2 May 2025, Martin Storsjö wrote: > >> On Tue, 29 Apr 2025, Martin Storsjö wrote: >> >>> Since GCC 10 and llvm.org Clang 11, -fno-common is the default. >>> However Apple's Xcode Clang hasn't followed suit yet, and still >>> defaults to -f

Re: [FFmpeg-devel] [PATCH] configure: Enable -fno-common for Darwin targets, avoid linker warnings

2025-05-05 Thread Martin Storsjö
On Fri, 2 May 2025, Martin Storsjö wrote: On Tue, 29 Apr 2025, Martin Storsjö wrote: Since GCC 10 and llvm.org Clang 11, -fno-common is the default. However Apple's Xcode Clang hasn't followed suit yet, and still defaults to -fcommon. Compiling with -fcommon causes uninitialized global variab

[FFmpeg-devel] [PATCH] aactab: add and initialize 2D VLC tables for USAC Mps212

2025-05-05 Thread Lynne
--- libavcodec/aac/aacdec_tab.c | 54 ++ libavcodec/aactab.c | 1820 +++ libavcodec/aactab.h | 20 + 3 files changed, 1894 insertions(+) diff --git a/libavcodec/aac/aacdec_tab.c b/libavcodec/aac/aacdec_tab.c index 45a84a9a72..5ba20c0d8a 100644 -