[FFmpeg-devel] [PATCH v7 2/8] tests: Add stream dump test API util.

2025-02-25 Thread Romain Beauxis
--- tests/Makefile| 1 + tests/api/Makefile| 2 +- tests/api/api-dump-stream-meta-test.c | 175 ++ 3 files changed, 177 insertions(+), 1 deletion(-) create mode 100644 tests/api/api-dump-stream-meta-test.c diff --git a/tests

[FFmpeg-devel] [PATCH v7 7/8] libavformat/oggparseopus.c: Parse comments from secondary chained streams header packet.

2025-02-25 Thread Romain Beauxis
--- libavformat/oggparseopus.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/libavformat/oggparseopus.c b/libavformat/oggparseopus.c index 218e9df581..fe25ad44f3 100644 --- a/libavformat/oggparseopus.c +++ b/libavformat/oggparseopus.c @@ -29,6 +29,7 @@ struct

[FFmpeg-devel] [PATCH v7 4/8] libavformat/oggdec.h, libavformat/oggparsevorbis.c: Factor out vorbis metadata update mechanism.

2025-02-25 Thread Romain Beauxis
--- libavformat/oggdec.h | 14 ++ libavformat/oggparsevorbis.c | 25 + 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/libavformat/oggdec.h b/libavformat/oggdec.h index 43df23f4cb..c8460a66e9 100644 --- a/libavformat/oggdec.h +++ b/libavf

[FFmpeg-devel] [PATCH v7 3/8] tests: Add chained ogg/vorbis stream dump test.

2025-02-25 Thread Romain Beauxis
--- tests/Makefile| 1 + tests/fate/ogg-vorbis.mak | 11 +++ 2 files changed, 12 insertions(+) create mode 100644 tests/fate/ogg-vorbis.mak diff --git a/tests/Makefile b/tests/Makefile index 1f7e5003c2..cffa586e8d 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -219,6 +2

Re: [FFmpeg-devel] CVE-2023-6602 fixes backporting

2025-02-25 Thread James Almer
On 2/25/2025 11:28 PM, Michael Niedermayer wrote: Hi all As i backported the fixes for $subj, i noticed they depend on ff_match_url_ext() which is not avaiable before 6.1 I will thus backport this too unless there are objections It's not public API, so it should be fine. OpenPGP_signature.

[FFmpeg-devel] [PATCH v4 1/3] libavformat/rtsp: Make source specific multicast work for rtsp streams

2025-02-25 Thread Rashad Tatum
by first changing the RTSPSource to track the destination address obtained from the source filter. For each RTSPStream, only add the source filter from the sdp if sdp_ip string matches source-filter's destination address. Before issuing the setup request, change the lower_transport to multicast if

[FFmpeg-devel] [PATCH v4 3/3] libavformat/rtsp: Fix playback of sdp files from http urls.

2025-02-25 Thread Rashad Tatum
Support wildcard source-filter destinations. Revamp source-filter processing to only happen after the first media description was processed and either when the next one starts or when we have reached the end of the sdp. This handles a wider variety of cases and doesn't rely on any optional media d

[FFmpeg-devel] [PATCH v4 2/3] libavformat/rtsp: Free memory allocated for temporary variables while processing sdp info

2025-02-25 Thread Rashad Tatum
--- libavformat/rtsp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 0c65f8d1a4..ac17717195 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -478,6 +478,7 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1,

[FFmpeg-devel] [PATCH v5 3/3] libavformat/rtsp: Fix playback of sdp files from http urls.

2025-02-25 Thread Rashad Tatum
Support wildcard source-filter destinations. Revamp source-filter processing to only happen after the first media description was processed and either when the next one starts or when we have reached the end of the sdp. This handles a wider variety of cases and doesn't rely on any optional media d

[FFmpeg-devel] [PATCH v5 1/3] libavformat/rtsp: Make source specific multicast work for rtsp streams

2025-02-25 Thread Rashad Tatum
by first changing the RTSPSource to track the destination address obtained from the source filter. For each RTSPStream, only add the source filter from the sdp if sdp_ip string matches source-filter's destination address. Before issuing the setup request, change the lower_transport to multicast if

[FFmpeg-devel] [PATCH v5 2/3] libavformat/rtsp: Free memory allocated for temporary variables while processing sdp info

2025-02-25 Thread Rashad Tatum
--- libavformat/rtsp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 0c65f8d1a4..ac17717195 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -478,6 +478,7 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1,

[FFmpeg-devel] [PATCH] Mark C globals with small code model

2025-02-25 Thread Pranav Kant via ffmpeg-devel
By default, all globals in C/C++ compiled by clang are allocated in non-large data sections. See [1] for background on code models. For PIC (Position independent code), this is fine as long as binary is small but as binary size increases, users maybe want to use medium/large code models (-mcmodel=m

[FFmpeg-devel] [PATCH v7 1/8] Add generic metadata injection using AV_PKT_DATA_METADATA_UPDATE

2025-02-25 Thread Romain Beauxis
libavcodec/decode.c: intercept `AV_PKT_DATA_METADATA_UPDATE` packet extra data, attach them to the next decoded frame. --- libavcodec/decode.c | 20 1 file changed, 20 insertions(+) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index cac7e620d2..96e2f0ce95 100644 --

[FFmpeg-devel] [PATCH v7 6/8] tests: Add chained ogg/flac stream dump test.

2025-02-25 Thread Romain Beauxis
--- tests/Makefile | 1 + tests/fate/ogg-flac.mak | 11 +++ 2 files changed, 12 insertions(+) create mode 100644 tests/fate/ogg-flac.mak diff --git a/tests/Makefile b/tests/Makefile index cffa586e8d..a37f2ab587 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -220,6 +220,7 @

Re: [FFmpeg-devel] [PATCH] Mark C globals with small code model

2025-02-25 Thread Andreas Rheinhardt
Pranav Kant via ffmpeg-devel: > By default, all globals in C/C++ compiled by clang are allocated > in non-large data sections. See [1] for background on code models. > For PIC (Position independent code), this is fine as long as binary is > small but as binary size increases, users maybe want to us

[FFmpeg-devel] FFmpeg Community Committee – Updates & Next Steps

2025-02-25 Thread Marth64
Dear FFmpeg Community, We’d like to share an update on the work of the Community Committee (CC). Starting this week, we will hold a weekly internal panel to discuss community matters and ensure more structured issue resolution. One of our key goals is to address some of the lingering discussions

Re: [FFmpeg-devel] [PATCH] avcodec/cuviddec: correctly handle buffer size and status when deinterlacing

2025-02-25 Thread Timo Rothenpieler
On 25.02.2025 19:43, Timo Rothenpieler wrote: --- libavcodec/cuviddec.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c index 67076a1752..312742fb8c 100644 --- a/libavcodec/cuviddec.c +++ b/libavcodec/

Re: [FFmpeg-devel] FFmpeg Community Committee – Updates & Next Steps

2025-02-25 Thread Michael Niedermayer
Hi Marth64 On Tue, Feb 25, 2025 at 05:04:00PM -0600, Marth64 wrote: > Dear FFmpeg Community, > > We’d like to share an update on the work of the Community Committee > (CC). Starting this week, we will hold a weekly internal panel to > discuss community matters and ensure more structured issue res

Re: [FFmpeg-devel] [PATCH] avformat/hls: Revert "reduce default max reload to 3"

2025-02-25 Thread Michael Niedermayer
Hi On Fri, Feb 07, 2025 at 02:39:56AM +, Soft Works wrote: > > > > -Original Message- > > From: Steven Liu > > Sent: Friday, February 7, 2025 3:24 AM > > To: FFmpeg development discussions and patches > de...@ffmpeg.org> > > Cc: softworkz > > Subject: Re: [FFmpeg-devel] [PATCH] av

[FFmpeg-devel] [PATCH v7 0/8] Properly decode ogg metadata in ogg/{vorbis, flac, opus} chained bitstreams

2025-02-25 Thread Romain Beauxis
This is a series of patches to allow proper decoding of ogg metadata in chained `ogg/vorbis, `ogg/flac` and `ogg/opus` streams. ## Changes since last version: * Cleaned up patch series * Reverted changes in how multiple fields are parsed in vorbis comments. Full discussion: https://code.ffmpeg.or

Re: [FFmpeg-devel] [PATCH 7/9] avcodec/nvenc: add MV-HEVC encoding support

2025-02-25 Thread Jean-Baptiste Kempf
Yo On Mon, 24 Feb 2025, at 21:54, Timo Rothenpieler wrote: > On 24.02.2025 21:52, Jean-Baptiste Kempf wrote: >> On Thu, 30 Jan 2025, at 20:40, Timo Rothenpieler wrote: >>> Added support for MV-HEVC encoding for stereoscopic videos (2 views >>> only). Compatible with the framepack filter when using

[FFmpeg-devel] [PATCH v7 8/8] tests: Add chained ogg/opus stream dump test.

2025-02-25 Thread Romain Beauxis
--- tests/Makefile | 1 + tests/fate/ogg-opus.mak | 11 +++ 2 files changed, 12 insertions(+) create mode 100644 tests/fate/ogg-opus.mak diff --git a/tests/Makefile b/tests/Makefile index a37f2ab587..75b9bcc729 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -221,6 +221,7 @

[FFmpeg-devel] [PATCH v7 5/8] libavformat/oggparseflac.c: Parse ogg/flac comments in new ogg packets, add them to ogg stream new_metadata.

2025-02-25 Thread Romain Beauxis
--- libavformat/oggparseflac.c | 21 + 1 file changed, 21 insertions(+) diff --git a/libavformat/oggparseflac.c b/libavformat/oggparseflac.c index f25ed9cc15..29f5904575 100644 --- a/libavformat/oggparseflac.c +++ b/libavformat/oggparseflac.c @@ -78,6 +78,25 @@ flac_header (AV

Re: [FFmpeg-devel] [PATCH v7 3/8] tests: Add chained ogg/vorbis stream dump test.

2025-02-25 Thread Romain Beauxis
Le mar. 25 févr. 2025 à 16:01, Romain Beauxis a écrit : Forgot to add: samples are here: https://www.dropbox.com/scl/fo/xrtrna2rxr1j354hrtymq/AGwemlxHYecBLNmQ8Fsy--4?rlkey=lzilr4m9w4gfdqygoe172vvy8&dl=0 > --- > tests/Makefile| 1 + > tests/fate/ogg-vorbis.mak | 11 +++ > 2

[FFmpeg-devel] CVE-2023-6602 fixes backporting

2025-02-25 Thread Michael Niedermayer
Hi all As i backported the fixes for $subj, i noticed they depend on ff_match_url_ext() which is not avaiable before 6.1 I will thus backport this too unless there are objections thx -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB What does censorship reveal? It rev

Re: [FFmpeg-devel] [PATCH] avcodec/cuviddec: correctly handle buffer size and status when deinterlacing

2025-02-25 Thread Scott Theisen
On 2/25/25 13:43, Timo Rothenpieler wrote: --- libavcodec/cuviddec.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c index 67076a1752..312742fb8c 100644 --- a/libavcodec/cuviddec.c +++ b/libavcodec/cuv

Re: [FFmpeg-devel] [PATCH] libavcodec/cuviddec.c: increase CUVID_DEFAULT_NUM_SURFACES

2025-02-25 Thread Timo Rothenpieler
On 25.02.2025 06:36, Scott Theisen wrote: On 2/22/25 08:16, Timo Rothenpieler wrote: On 22.02.2025 03:52, Scott Theisen wrote: On 2/21/25 08:26, Timo Rothenpieler wrote: On 20.02.2025 21:37, Scott Theisen wrote: The default value of CuvidContext::nb_surfaces was reduced from 25 to 5 (as (CUVI

[FFmpeg-devel] [PATCH] avcodec/cuviddec: correctly handle buffer size and status when deinterlacing

2025-02-25 Thread Timo Rothenpieler
--- libavcodec/cuviddec.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c index 67076a1752..312742fb8c 100644 --- a/libavcodec/cuviddec.c +++ b/libavcodec/cuviddec.c @@ -131,7 +131,7 @@ static int CUDAAPI

[FFmpeg-devel] [PATCH] avutil/aarch64/tx_float_neon.S: clean up FFT4_X2

2025-02-25 Thread Krzysztof Pyrkosz via ffmpeg-devel
--- This patch rids the code from two tbl instructions and the shuffle table. There's no fneg v0.s[3] instruction unfortunately, so I negate the whole vector and copy the last element only. It's tricky to benchmark this little change but on average it seems to be beneficial. Krzysztof libavutil

[FFmpeg-devel] [PATCH] avcodec/lcevcdec: Use proper include

2025-02-25 Thread Andreas Rheinhardt
Patch attachedFrom f843ca52b0d2fb4275ac9de3d93aa67472780190 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 25 Feb 2025 12:54:14 +0100 Subject: [PATCH] avcodec/lcevcdec: Use proper include External libraries are not components and so their CONFIG_ define is in config.h. Signed-off-b

[FFmpeg-devel] [aac] Don't attempt to parse ADTS from USAC packets.

2025-02-25 Thread Dale Curtis
It's not possible to put USAC into ADTS due to exceeding the field size (4 bits) for ADTS profile. As such cases where the frame starts with 0xfff shouldn't be checked. This ensures the sample at https://crbug.com/396190942 is properly detected as USAC content. Signed-off-by: Dale Curtis usac_

[FFmpeg-devel] [PATCH] avutil/frame: Port AVFrame.private_ref to RefStruct API

2025-02-25 Thread Andreas Rheinhardt
James Almer: > It's been a year since the last bump, so lets get rid of old deprecated API > in time for ffmpeg 8.0 > I want to add the attached patch to that set. There will probably be a minor conflict with the FF_API_FRAME_KEY patch (your github account didn't have a branch of this, so I based

Re: [FFmpeg-devel] [PATCH] avcodec/ffv1_parser: Rename close to ffv1_close

2025-02-25 Thread James Almer
On 2/19/2025 9:33 AM, Zhao Zhili wrote: From: Zhao Zhili This fixed wasm checkasm failure $ wasm-tools validate tests/checkasm/checkasm error: wasisdk://v25.0/build/sysroot/wasi-libc-wasm32-wasip1-threads/libc-top-half/musl/src/stdio/__stdio_close.c:24:9 function `__stdio_close` failed to va

Re: [FFmpeg-devel] [PATCH] avutil/frame: Port AVFrame.private_ref to RefStruct API

2025-02-25 Thread James Almer
On 2/25/2025 9:29 AM, Andreas Rheinhardt wrote: James Almer: It's been a year since the last bump, so lets get rid of old deprecated API in time for ffmpeg 8.0 I want to add the attached patch to that set. There will probably be a minor conflict with the FF_API_FRAME_KEY patch (your github ac

Re: [FFmpeg-devel] [PATCH] avcodec/lcevcdec: Use proper include

2025-02-25 Thread James Almer
On 2/25/2025 9:20 AM, Andreas Rheinhardt wrote: From f843ca52b0d2fb4275ac9de3d93aa67472780190 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 25 Feb 2025 12:54:14 +0100 Subject: [PATCH] avcodec/lcevcdec: Use proper include External libraries are not components and so their CONFIG_