[FFmpeg-devel] [PATCH] avcodec/dfpwmenc: Correctly pad input

2025-06-22 Thread Andreas Rheinhardt
Patch attached. - Andreas From 920bfa1e105c2c3a8951fc713614e0edf90fdc54 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 22 Jun 2025 07:37:45 +0200 Subject: [PATCH] avcodec/dfpwmenc: Correctly pad input Before this patch, the DFPWM1a encoder was marked as supporting variable frame si

Re: [FFmpeg-devel] [PATCH] download: remove unmaintained linux binary source

2025-06-22 Thread Gyan Doshi
On 2025-06-21 11:42 pm, compn wrote: On Thu, 19 Jun 2025 15:04:27 +0530, Gyan Doshi wrote: This source looks to be unmaintained since 2024 August. The latest ffmpeg git master build is from 2024 June, and the latest release build is 7.0.2, from 2024 August. --- src/download | 2 -- 1 fil

Re: [FFmpeg-devel] [PATCH v2 2/2] avcodec/mss2dsp: use FF_PTR_ADD to add offsets to a pointer

2025-06-22 Thread Kacper Michajlow
On Sun, 22 Jun 2025 at 15:54, James Almer wrote: > > Fixes: libavcodec/mss2dsp.c:59:14: runtime error: applying zero offset to > null pointer > > Signed-off-by: James Almer > --- > Untested, as gcc-usan on Linux x86_64 doesn't complain about it, but it can > be seen in > https://fate.ffmpeg.org

Re: [FFmpeg-devel] [PATCH] avformat/mpegts: Add allow_codec_changes option to AVFormatContext

2025-06-22 Thread Pavel Koshevoy
On Sun, Jun 22, 2025 at 1:26 AM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Pavel Koshevoy: > > Make runtime AVStream.codecpar codec_id updates optional and disabled > > by default, so that avformat API clients can enable this feature > explicitly > > when they add support for ru

[FFmpeg-devel] [PATCH 2/2] avcodec/dfpwmenc: Remove write-only context member

2025-06-22 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Patch attached. > > - Andreas > And another one. - Andreas From aa49fcd3a33ba855d873c3e4f3f2675a03043d02 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 22 Jun 2025 09:10:03 +0200 Subject: [PATCH 2/2] avcodec/dfpwmenc: Remove write-only context member Signed

Re: [FFmpeg-devel] [PATCH] avformat/mpegts: Add allow_codec_changes option to AVFormatContext

2025-06-22 Thread Pavel Koshevoy
I don't see this patch on https://patchwork.ffmpeg.org/project/ffmpeg/list/ ... is patchwork broken? On Sat, Jun 21, 2025 at 5:24 PM Pavel Koshevoy wrote: > Make runtime AVStream.codecpar codec_id updates optional and disabled > by default, so that avformat API clients can enable this feature ex

[FFmpeg-devel] [PATCH] avcodec/tests/.gitignore: Add hashtable test tool

2025-06-22 Thread Andreas Rheinhardt
Patch attached. - Andreas From 147bc6038d81ae9a0bd435cdb3b22c09a6217fc9 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 22 Jun 2025 09:29:02 +0200 Subject: [PATCH] avcodec/tests/.gitignore: Add hashtable test tool Signed-off-by: Andreas Rheinhardt --- libavcodec/tests/.gitignore |

[FFmpeg-devel] [PATCH v3 2/2] avfilter/vf_thumbnail: switch to query_func2

2025-06-22 Thread Niklas Haas
From: Niklas Haas Instead of enumerating a static list of planar formats to support, walk through the format list and enable all supported formats. As of writing, this generates the following format list: - gbrap - gbrap10le - gbrap12le - gbrap14le - gbrap16le - gbrp - gbrp10le - gbrp12le - gbrp

[FFmpeg-devel] [PATCH v3 1/2] avfilter/vf_thumbnail: support more planar formats

2025-06-22 Thread Niklas Haas
From: Niklas Haas This adds support for high bit depth formats, as well as formats with fewer than 3 planes. The implementation for HBD is the same as for 8 bit formats, just right shifted to 8 bits. It's worth pointing out that this also works for HDR formats (and even DV), because the underlyi

[FFmpeg-devel] [PATCH 1/3] avcodec/indeo3: Fix UB pointer arithmetic

2025-06-22 Thread Andreas Rheinhardt
Patches attached. - Andreas From b0c865afeb02e5bce6cb43e5c3ec660e2833d25c Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 22 Jun 2025 22:36:00 +0200 Subject: [PATCH 1/3] avcodec/indeo3: Fix UB pointer arithmetic Fixes the following error when running with Clang-UBSan: src/libavcodec

Re: [FFmpeg-devel] [PATCH 2/2] fftools/textformat: renamings in print_unit_int for consistency (cosmetic)

2025-06-22 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Nicolas Gaullier > Sent: Freitag, 20. Juni 2025 13:08 > To: ffmpeg-devel@ffmpeg.org > Cc: Nicolas Gaullier > Subject: [FFmpeg-devel] [PATCH 2/2] fftools/textformat: renamings > in print_unit_int for consistency (cosmetic) > > Si

Re: [FFmpeg-devel] [PATCH 1/2] fftools/textformat: fix print 64 bit integers

2025-06-22 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of Marvin > Scholz > Sent: Freitag, 20. Juni 2025 13:30 > To: FFmpeg development discussions and patches > Cc: Nicolas Gaullier > Subject: Re: [FFmpeg-devel] [PATCH 1/2] fftools/textformat: fix print 64 > bit integers > > > > On 2

[FFmpeg-devel] [PATCH] avcodec/ffv1enc: Use dummies to avoid UB pointer arithmetic

2025-06-22 Thread Andreas Rheinhardt
Patch attached. - Andreas From 74609d43bdce4556651e033ce4ee8fcb022d3c95 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 22 Jun 2025 23:25:34 +0200 Subject: [PATCH] avcodec/ffv1enc: Use dummies to avoid UB pointer arithmetic Fixes the following FATE-tests when run under Clang-UBSan:

[FFmpeg-devel] [PATCH v3] avformat/hlsenc: Fix path handling for Windows

2025-06-22 Thread softworkz
From: softworkz ..to allow playlist paths like: c:\hls\video1\master.m3u8 When base_output_dirname was determined, only '/' was searched for as path separator. get_relative_url() on the other hand searched for both forward and backward slash regardless of OS. Fix these issues by factorizing the

Re: [FFmpeg-devel] [PATCH 1/2] fftools/textformat: fix print 64 bit integers

2025-06-22 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Nicolas Gaullier > Sent: Freitag, 20. Juni 2025 13:08 > To: ffmpeg-devel@ffmpeg.org > Cc: Nicolas Gaullier > Subject: [FFmpeg-devel] [PATCH 1/2] fftools/textformat: fix print > 64 bit integers > > Regression in ffprobe since tex

[FFmpeg-devel] avdevice/android_camera: image linesize aligment is 1

2025-06-22 Thread Wang Bin
0001-avdevice-android_camera-image-linesize-aligment-is-1.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-req

[FFmpeg-devel] [PATCH 2/4] avcodec/wma, wmaprodec: Remove always-false checks

2025-06-22 Thread Andreas Rheinhardt
From: Andreas Rheinhardt None of the codecs used here has the AV_CODEC_CAP_CHANNEL_CONF cap set, so the sample rate is checked generically. Signed-off-by: Andreas Rheinhardt --- libavcodec/wma.c | 2 +- libavcodec/wmaprodec.c | 5 - 2 files changed, 1 insertion(+), 6 deletions(-) di

[FFmpeg-devel] [PATCH 1/4] avcodec/avcodec: Check sample_rate generically

2025-06-22 Thread Andreas Rheinhardt
From: Andreas Rheinhardt Check that all audio codecs except decoders with the AV_CODEC_CAP_CHANNEL_CONF flag have a positive sample rate set. Fixes: AVERROR_BUG return Fixes: 413997604/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HCA_fuzzer-5188382613635072 Found-by: continuous fuzzing pr

[FFmpeg-devel] [PATCH 3/4] avcodec/wma: Remove redundant nb_channels check

2025-06-22 Thread Andreas Rheinhardt
From: Andreas Rheinhardt Already checked generically as none of the codecs here have the AV_CODEC_CAP_CHANNEL_CONF set. Signed-off-by: Andreas Rheinhardt --- libavcodec/wma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/wma.c b/libavcodec/wma.c index 31a422ee2

[FFmpeg-devel] [PATCH 1/8] tests/fate/screen: Add test for skipping cursor with FIC

2025-06-22 Thread Andreas Rheinhardt
Patches attached. - Andreas From b3b26d0b46a44adc0d4ccdfcffb7b808fbf056df Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 23 Jun 2025 03:37:08 +0200 Subject: [PATCH 1/8] tests/fate/screen: Add test for skipping cursor with FIC Signed-off-by: Andreas Rheinhardt --- tests/fate/scree

Re: [FFmpeg-devel] AAC crashes and bugs

2025-06-22 Thread Michael Niedermayer
Hi On Fri, Jun 20, 2025 at 12:11:01AM +0200, Michael Niedermayer wrote: > Hi Lynne, et al > > ossfuzz has currently 7 open public issues about AAC > https://issues.oss-fuzz.com/issues?q=status:new%20%0Affmpeg:ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer > https://issues.oss-fuzz.com/issues?q=status:new%20%

[FFmpeg-devel] [PATCH 1/2] swresample/rematrix: Use correct function pointer types for calls

2025-06-22 Thread Andreas Rheinhardt
Patches attached. - Andreas From 520002b8a95d06baaf2a10c660e21bf84d036787 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 23 Jun 2025 02:02:54 +0200 Subject: [PATCH 1/2] swresample/rematrix: Use correct function pointer types for calls Calling a function via a different function po

Re: [FFmpeg-devel] [PATCH 3/3] avformat/hlsenc: Fix path handling for Windows

2025-06-22 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of Marton > Balint > Sent: Samstag, 14. Juni 2025 17:35 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH 3/3] avformat/hlsenc: Fix path > handling for Windows > > On Fri, 13 Jun 2025, softworkz .

Re: [FFmpeg-devel] [PATCH 6/8] avcodec/vvc/ctu: Check palette_escape_val

2025-06-22 Thread Nuo Mi
On Sun, Jun 22, 2025 at 2:41 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Nuo Mi: > > On Fri, Jun 20, 2025 at 8:40 AM Michael Niedermayer < > mich...@niedermayer.cc> > > wrote: > > > >> Fixes: integer overflow > >> Fixes: > >> > 418314174/clusterfuzz-testcase-minimized-ffmpeg_A

Re: [FFmpeg-devel] [PATCH] avcodec/ffv1enc_template: use FF_PTR_ADD to add offsets to a pointer

2025-06-22 Thread Kacper Michajlow
On Sun, 22 Jun 2025 at 16:50, Kacper Michajlow wrote: > > On Sun, 22 Jun 2025 at 15:49, James Almer > wrote: > > > > Fixes: libavcodec\ffv1enc_template.c:75:79: runtime error: applying zero > > offset to null pointer > > Signed-off-by: James Almer > > --- > > Untested, as gcc-usan on Linux x86_

Re: [FFmpeg-devel] [PATCH] avcodec/ffv1enc_template: use FF_PTR_ADD to add offsets to a pointer

2025-06-22 Thread Kacper Michajlow
On Sun, 22 Jun 2025 at 15:49, James Almer wrote: > > Fixes: libavcodec\ffv1enc_template.c:75:79: runtime error: applying zero > offset to null pointer > Signed-off-by: James Almer > --- > Untested, as gcc-usan on Linux x86_64 doesn't complain about it, but it can > be seen in clang-usan also re

[FFmpeg-devel] [PATCH] avformat/mpegts: Add AVFMT_FLAG_ALLOW_CODEC_CHANGES

2025-06-22 Thread Pavel Koshevoy
Make midstream AVStream.codecpar updates optional and disabled by default, so that avformat API clients can enable this feature explicitly when they add support for midstream codec changes. --- doc/APIchanges | 3 +++ doc/formats.texi| 5 + libavformat/avformat.h

[FFmpeg-devel] [PATCH] avcodec/ffv1enc_template: use FF_PTR_ADD to add offsets to a pointer

2025-06-22 Thread James Almer
Fixes: libavcodec\ffv1enc_template.c:75:79: runtime error: applying zero offset to null pointer Signed-off-by: James Almer --- Untested, as gcc-usan on Linux x86_64 doesn't complain about it, but it can be seen in https://fate.ffmpeg.org/report.cgi?time=20250622122557&slot=amd64-clang-cl-msvc-as

Re: [FFmpeg-devel] [PATCH] avformat/mpegts: Add allow_codec_changes option to AVFormatContext

2025-06-22 Thread Andreas Rheinhardt
Pavel Koshevoy: > Make runtime AVStream.codecpar codec_id updates optional and disabled > by default, so that avformat API clients can enable this feature explicitly > when they add support for runtime codec changes. > --- > doc/APIchanges | 3 +++ > doc/formats.texi| 6

[FFmpeg-devel] [PATCH v2 2/2] avcodec/mss2dsp: use FF_PTR_ADD to add offsets to a pointer

2025-06-22 Thread James Almer
Fixes: libavcodec/mss2dsp.c:59:14: runtime error: applying zero offset to null pointer Signed-off-by: James Almer --- Untested, as gcc-usan on Linux x86_64 doesn't complain about it, but it can be seen in https://fate.ffmpeg.org/report.cgi?time=20250622122557&slot=amd64-clang-cl-msvc-asan lib

Re: [FFmpeg-devel] [PATCH] avformat/demux: Fix segfault due to avcodec_open2 failure (v2)

2025-06-22 Thread Michael Niedermayer
Hi Pavel On Fri, Jun 20, 2025 at 10:28:16AM -0600, Pavel Koshevoy wrote: > On Wed, Jun 11, 2025 at 4:14 AM Michael Niedermayer > wrote: > > > Hi Pavel > > > > On Tue, Jun 10, 2025 at 05:36:14PM -0600, Pavel Koshevoy wrote: > > > On Tue, Jun 10, 2025 at 4:11 PM Michael Niedermayer < > > mich...@n