[FFmpeg-devel] [PATCH v4 2/2] avcodec/mfenc: add support for D3D11 input surfaces

2025-07-14 Thread Dash Santosh Sathyanarayanan
Adds D3D11 input surface support to the MediaFoundation encoder (mfenc), allowing direct encoding of GPU frames without readback to system memory. This improves performance and compatibility when used alongside scale_d3d11. Signed-off-by: Dash Santosh --- libavcodec/mf_utils.h | 7 ++ libavcod

Re: [FFmpeg-devel] [PATCH] swscale/aarch64/output: Implement yuv2nv12cx neon assembly

2025-07-14 Thread Harshitha Sarangu Suresh
Hi, Can you please review the patch? Thanks. Get Outlook for Android From: Harshitha Sarangu Suresh Sent: Thursday, July 10, 2025 10:06:19 AM To: FFmpeg development discussions and patches Cc: Logaprakash Ramajayam ; Dash Santosh Sathyana

[FFmpeg-devel] [PATCH v2 1/1] swscale/aarch64/output: Implement neon assembly for yuv2planeX_10_c_template()

2025-07-14 Thread Logaprakash Ramajayam
Handled all the comments and attaching the checkasm results. Checkasm Benchmark results: yuv2yuvX_10_LE_16_0_512_accurate_c: 7836.9 ( 1.00x) yuv2yuvX_10_LE_16_0_512_accurate_neon: 840.4 ( 9.33x) yuv2yuvX_10_LE_16_0_512_approximate_c:7930.8 ( 1.00

[FFmpeg-devel] [PATCH v3] fftools/cmdutils: Add av_freep() to avoid memory leak

2025-07-14 Thread Jiasheng Jiang
Add av_freep() to free new_elem to avoid memory leak. Fixes: 3ca1e31e63 ("fftools/cmdutils: Atomically add elements to list of pointers, fix crash") Signed-off-by: Jiasheng Jiang --- Changelog: v2 -> v3: 1. Replace with a correct fixes tag. v1 -> v2: 1. Remove the unnecessary return NULL. --

Re: [FFmpeg-devel] [POLL] [VOTE] code.ffmpeg.org

2025-07-14 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Michael Niedermayer > Sent: Sonntag, 13. Juli 2025 13:44 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: [FFmpeg-devel] [POLL] [VOTE] code.ffmpeg.org > > Hi all > > Do people want Forgejo or Gitlab

Re: [FFmpeg-devel] [PATCH v2] fftools/cmdutils: Add av_freep() to avoid memory leak

2025-07-14 Thread Michael Niedermayer
On Sat, Jul 12, 2025 at 01:46:28PM +, Jiasheng Jiang wrote: > Add av_freep() to free new_elem to avoid memory leak. > > Fixes: 2d0bfbd0fa ("fftools/cmdutils: Use av_dynarray_add_nofree()") > Signed-off-by: Jiasheng Jiang > --- > Changlog: > > v1 -> v2: > > 1. Remove the unnecessary return N

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: add myself

2025-07-14 Thread Michael Niedermayer
On Fri, Jul 11, 2025 at 07:06:02PM +0200, Kacper Michajłow wrote: > Signed-off-by: Kacper Michajłow > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) will apply thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Dictatorship naturally arises out of

Re: [FFmpeg-devel] [PATCH 1/5] avformat/flvdec: Check for EOF in AudioPacketTypeMultichannelConfig

2025-07-14 Thread Timo Rothenpieler
On 7/15/2025 12:01 AM, Michael Niedermayer wrote: On Mon, Jul 14, 2025 at 10:00:19PM +0200, Timo Rothenpieler wrote: On 7/14/2025 9:21 PM, Michael Niedermayer wrote: On Sun, Jul 13, 2025 at 01:42:28PM +0200, Timo Rothenpieler wrote: On 7/13/2025 3:10 AM, Michael Niedermayer wrote: Fixes: Infi

[FFmpeg-devel] [PATCH] configure: Update ossfuzz stuff to clang-12+

2025-07-14 Thread Michael Niedermayer
--- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index fc082d5467e..e568eed55d3 100755 --- a/configure +++ b/configure @@ -4606,8 +4606,8 @@ set >> $logfile test -n "$valgrind" && toolchain="valgrind-memcheck" enabled ossfuzz && ! echo

Re: [FFmpeg-devel] [PATCH] avcodec/ffv1dec: don't add offsets to NULL pointers

2025-07-14 Thread Michael Niedermayer
On Sun, Jul 13, 2025 at 07:57:18PM -0300, James Almer wrote: > Fixes: libavcodec/ffv1dec.c:452:43: runtime error: applying zero offset to > null pointer > Signed-off-by: James Almer > --- > libavcodec/ffv1dec.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) LGTM thx [...]

Re: [FFmpeg-devel] [PATCH] avcodec/motion_est: don't add offsets to NULL pointers

2025-07-14 Thread Michael Niedermayer
On Sun, Jul 13, 2025 at 08:01:52PM -0300, James Almer wrote: > Fixes: libavcodec/motion_est.c:94:31: runtime error: applying zero offset to > null pointer > Signed-off-by: James Almer > --- > libavcodec/motion_est.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/

Re: [FFmpeg-devel] [PATCH 1/5] avformat/flvdec: Check for EOF in AudioPacketTypeMultichannelConfig

2025-07-14 Thread Michael Niedermayer
On Mon, Jul 14, 2025 at 10:00:19PM +0200, Timo Rothenpieler wrote: > On 7/14/2025 9:21 PM, Michael Niedermayer wrote: > > On Sun, Jul 13, 2025 at 01:42:28PM +0200, Timo Rothenpieler wrote: > > > On 7/13/2025 3:10 AM, Michael Niedermayer wrote: > > > > Fixes: Infinite loop > > > > Fixes: > > > > 42

Re: [FFmpeg-devel] [PATCH] Whisper audio filter

2025-07-14 Thread Michael Niedermayer
Hi Vittorio On Mon, Jul 14, 2025 at 12:34:24PM +0200, Vittorio Palmisano wrote: > Hi, I've added some changes to improve the VAD mechanism. > You can find the changes here too: > https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/17/files > > > Signed-off-by: Vittorio Palmisano > --- > configure | 5 +

Re: [FFmpeg-devel] [POLL] [VOTE] code.ffmpeg.org

2025-07-14 Thread Alexander Strasser via ffmpeg-devel
On 2025-07-13 13:43 +0200, Michael Niedermayer wrote: > Hi all > > Do people want Forgejo or Gitlab on code.ffmpeg.org for testing? > > F. code.ffmpeg.org should run Forgejo > G. code.ffmpeg.org should run Gitlab F. * the UI is more intuitive IMHO and I suspect it will be to the majority of n

Re: [FFmpeg-devel] [PATCH v8 14/18] swscale/ops_memcpy: add 'memcpy' backend for plane->plane copies

2025-07-14 Thread Alexander Strasser via ffmpeg-devel
Hi Niklas! On 2025-07-14 10:51 +0200, Niklas Haas wrote: > On Sun, 13 Jul 2025 19:04:21 +0200 Alexander Strasser via ffmpeg-devel > wrote: > > On 2025-07-12 12:44 +0200, Niklas Haas wrote: [...] > > > + > > > +SwsOpBackend backend_murder = { > > > +.name= "memcpy", > > > +.compile =

Re: [FFmpeg-devel] [PATCH 1/4] avfilter/framequeue: add support for limiting and tracking buffered frames in the queues

2025-07-14 Thread Marton Balint
On Mon, 7 Jul 2025, Marton Balint wrote: Signed-off-by: Marton Balint --- libavfilter/framequeue.c | 7 +++ libavfilter/framequeue.h | 18 +++--- 2 files changed, 22 insertions(+), 3 deletions(-) Will apply the series. Regards, Marton diff --git a/libavfilter/framequeue.

Re: [FFmpeg-devel] [PATCH 1/5] avformat/flvdec: Check for EOF in AudioPacketTypeMultichannelConfig

2025-07-14 Thread Timo Rothenpieler
On 7/14/2025 9:21 PM, Michael Niedermayer wrote: On Sun, Jul 13, 2025 at 01:42:28PM +0200, Timo Rothenpieler wrote: On 7/13/2025 3:10 AM, Michael Niedermayer wrote: Fixes: Infinite loop Fixes: 427538726/clusterfuzz-testcase-minimized-ffmpeg_dem_FLV_fuzzer-6582567304495104 Found-by: continuous

Re: [FFmpeg-devel] [PATCH 2/2] avformat/concatdec: Check recursion depth

2025-07-14 Thread Michael Niedermayer
On Sun, Jul 13, 2025 at 07:09:13PM +0200, Marton Balint wrote: > > > On Fri, 11 Jul 2025, Michael Niedermayer wrote: > > > On Fri, Jul 11, 2025 at 10:29:30AM +0200, Nicolas George wrote: > > > Michael Niedermayer (HE12025-07-11): > > > > ok, chanegd it to AVERROR_INVALIDDATA > > > > > > Thanks.

Re: [FFmpeg-devel] [PATCH 1/5] avformat/flvdec: Check for EOF in AudioPacketTypeMultichannelConfig

2025-07-14 Thread Timo Rothenpieler
On 7/14/2025 9:21 PM, Michael Niedermayer wrote: On Sun, Jul 13, 2025 at 01:42:28PM +0200, Timo Rothenpieler wrote: On 7/13/2025 3:10 AM, Michael Niedermayer wrote: Fixes: Infinite loop Fixes: 427538726/clusterfuzz-testcase-minimized-ffmpeg_dem_FLV_fuzzer-6582567304495104 Found-by: continuous

Re: [FFmpeg-devel] [PATCH 1/5] avformat/flvdec: Check for EOF in AudioPacketTypeMultichannelConfig

2025-07-14 Thread Michael Niedermayer
On Sun, Jul 13, 2025 at 01:42:28PM +0200, Timo Rothenpieler wrote: > On 7/13/2025 3:10 AM, Michael Niedermayer wrote: > > Fixes: Infinite loop > > Fixes: > > 427538726/clusterfuzz-testcase-minimized-ffmpeg_dem_FLV_fuzzer-6582567304495104 > > > > Found-by: continuous fuzzing process > > https://g

Re: [FFmpeg-devel] [PATCH 5/5] avcodec/osq: Fix 32bit sample overflow

2025-07-14 Thread Michael Niedermayer
On Sun, Jul 13, 2025 at 07:37:06PM +0200, Andreas Rheinhardt wrote: > Michael Niedermayer: > > Fixes: signed integer overflow: 2147483565 + 128 cannot be represented in > > type 'int' > > Fixes: > > 428055715/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_OSQ_fuzzer-6358069900804096 > > > > F

Re: [FFmpeg-devel] [PATCH 4/5] avcodec/mpegvideo_dec: Fix lowres=3 field select interlaced mpeg4 frame

2025-07-14 Thread Michael Niedermayer
On Sun, Jul 13, 2025 at 07:34:50PM +0200, Andreas Rheinhardt wrote: > Michael Niedermayer: > > Fixes: out of array read in the chroma plane > > Fixes: > > 428034092/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_DEC_fuzzer-5582608941776896.test > > > > Found-by: continuous fuzzing proces

[FFmpeg-devel] [PATCH] fftools/ffplay: Add check for av_malloc_array()

2025-07-14 Thread Jiasheng Jiang
Add check for the return value of av_malloc_array() to avoid potential NULL pointer dereference. Fixes: 4acd08be6c ("ffplay: port to lavu/tx") Signed-off-by: Jiasheng Jiang --- fftools/ffplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.

Re: [FFmpeg-devel] [PATCH 3/5] avcodec/h264chroma_template: Replace variable by constant in chroma mc

2025-07-14 Thread Kieran Kunhya via ffmpeg-devel
On Sun, 13 Jul 2025, 02:11 Michael Niedermayer, wrote: > Signed-off-by: Michael Niedermayer > --- > libavcodec/h264chroma_template.c | 30 +++--- > 1 file changed, 15 insertions(+), 15 deletions(-) > > diff --git a/libavcodec/h264chroma_template.c > b/libavcodec/h264chro

Re: [FFmpeg-devel] [PATCH v3] avformat/tls_schannel: add check for Windows 10 only types and defines

2025-07-14 Thread Michael Niedermayer
On Sun, Jul 13, 2025 at 04:56:20PM -0300, James Almer wrote: > Old Mingw-w64 releases provided by some distros seemingly don't have them, so > check for them and disable the dtls protocol if unavailable. > > Signed-off-by: James Almer > --- > configure | 4 > libavformat/t

Re: [FFmpeg-devel] [PATCH] Whisper audio filter

2025-07-14 Thread Vittorio Palmisano
Hi, I've added some changes to improve the VAD mechanism. You can find the changes here too: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/17/files Signed-off-by: Vittorio Palmisano --- configure | 5 + doc/filters.texi | 106 + libavfilter/Makefile | 2 + libavfilter/af_whisper.c | 452 +

Re: [FFmpeg-devel] [POLL] [VOTE] code.ffmpeg.org

2025-07-14 Thread Gyan Doshi
On 2025-07-13 05:13 pm, Michael Niedermayer wrote: Hi all Do people want Forgejo or Gitlab on code.ffmpeg.org for testing? F. code.ffmpeg.org should run Forgejo G. code.ffmpeg.org should run Gitlab all GA members can vote, by publically replying here with a "F." / "Forgejo" vs "G." / "Gitla

Re: [FFmpeg-devel] [POLL] [VOTE] code.ffmpeg.org

2025-07-14 Thread Lynne
On 13/07/2025 20:43, Michael Niedermayer wrote: Hi all Do people want Forgejo or Gitlab on code.ffmpeg.org for testing? F. code.ffmpeg.org should run Forgejo G. code.ffmpeg.org should run Gitlab all GA members can vote, by publically replying here with a "F." / "Forgejo" vs "G." / "Gitlab" End

Re: [FFmpeg-devel] [POLL] [VOTE] code.ffmpeg.org

2025-07-14 Thread Hendrik Leppkes
On Sun, Jul 13, 2025 at 1:44 PM Michael Niedermayer wrote: > > Hi all > > Do people want Forgejo or Gitlab on code.ffmpeg.org for testing? > > F. code.ffmpeg.org should run Forgejo > G. code.ffmpeg.org should run Gitlab > F. ___ ffmpeg-devel mailing lis

[FFmpeg-devel] [PATCH v4] avformat/mov_muxer: Extended MOV muxer to handle APV video content

2025-07-14 Thread Dawid Kozinski
- Changes in mov_write_video_tag function to handle APV elementary stream - Provided structure APVDecoderConfigurationRecord that specifies the decoder configuration information for APV video content Signed-off-by: Dawid Kozinski --- libavcodec/cbs_apv.c| 19 +- libavformat/Makefile|

Re: [FFmpeg-devel] [PATCH v8 14/18] swscale/ops_memcpy: add 'memcpy' backend for plane->plane copies

2025-07-14 Thread Niklas Haas
On Sun, 13 Jul 2025 19:04:21 +0200 Alexander Strasser via ffmpeg-devel wrote: > On 2025-07-12 12:44 +0200, Niklas Haas wrote: > > From: Niklas Haas > > > > Provides a generic fast path for any operation list that can be decomposed > > into a series of memcpy and memset operations. > > > > 25% fa

Re: [FFmpeg-devel] [PATCH v8 13/18] swscale/ops_backend: add reference backend basend on C templates

2025-07-14 Thread Niklas Haas
On Sun, 13 Jul 2025 22:14:44 +0200 Andreas Rheinhardt wrote: > Niklas Haas: > > From: Niklas Haas > > > > This will serve as a reference for the SIMD backends to come. That said, > > with auto-vectorization enabled, the performance of this is not atrocious. > > It easily beats the old C code and

Re: [FFmpeg-devel] [PATCH v8 06/18] swscale: add SWS_UNSTABLE flag

2025-07-14 Thread Niklas Haas
On Sun, 13 Jul 2025 22:05:21 +0200 Andreas Rheinhardt wrote: > This patchset adds 214992B of .text, 6304B of .rodata, 42176B of > .data.rel.ro for an opt-in feature. There should be a configure option > to disable the new additions (i.e. the rest of the patchset) from being > compiled in for user

Re: [FFmpeg-devel] [PATCH v8 07/18] swscale/ops: introduce new low level framework

2025-07-14 Thread Niklas Haas
On Sun, 13 Jul 2025 20:25:18 +0200 Andreas Rheinhardt wrote: > Niklas Haas: > > From: Niklas Haas > > > > See docs/swscale-v2.txt for an in-depth introduction to the new approach. > > > > This commit merely introduces the ops definitions and boilerplate functions. > > The subsequent commits will