Re: [FFmpeg-devel] [PATCH] avcodec/sbcenc: port to AVCodec.get_supported_config()

2025-02-18 Thread epirat07
On 19 Feb 2025, at 3:47, Zhao Zhili wrote: >> On Feb 19, 2025, at 03:28, James Almer wrote: >> >> Signed-off-by: James Almer >> --- >> libavcodec/sbcenc.c | 50 + >> 1 file changed, 41 insertions(+), 9 deletions(-) >> >> diff --git a/libavcodec/sbcenc

Re: [FFmpeg-devel] [PATCH 1/2] avformat/oggenc: don't discard empty packets with no side data

2025-02-18 Thread James Almer
On 2/13/2025 7:47 PM, James Almer wrote: Theora signals "Output last frame again" with an empty packet. To keep the behaviour of 18f24527eb of ignoring side data only packets, as generated by the FLAC encoder to propagate updated extradata, also check for pkt->side_data_size to choose wheter to m

Re: [FFmpeg-devel] [PATCH] avformat/mov: further ensure mov_build_index isn't run twice

2025-02-18 Thread James Almer
On 2/13/2025 11:49 PM, James Almer wrote: If sc->tts_count is not 0, then the sample index has already been built. Fixes: Null-dereference READ Fixes: 396192874/clusterfuzz-testcase-minimized-audio_decoder_fuzzer-4589309789143040 Signed-off-by: James Almer --- Supersedes "avformat/mov: ensure

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

2025-02-18 Thread Michael Niedermayer
On Mon, Feb 17, 2025 at 01:41:30PM -0500, Rashad Tatum wrote: > --- > libavformat/rtsp.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c > index 0c65f8d1a4..da733938bc 100644 > --- a/libavformat/rtsp.c > +++ b/libavformat/rtsp.c > @@ -478,6 +478,

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

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

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

2025-02-18 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: * Metadata update is now using a factored out function from the vorbis decoder which includes update the underlying AVStream metadata and

[FFmpeg-devel] [PATCH v6 1/9] libavcodec/decode.c: Add generic metadata injection using AV_PKT_DATA_METADATA_UPDATE

2025-02-18 Thread Romain Beauxis
--- libavcodec/decode.c | 20 1 file changed, 20 insertions(+) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index cac7e620d2..96e2f0ce95 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -97,6 +97,8 @@ typedef struct DecodeContext { int lcevc_frame;

[FFmpeg-devel] [PATCH v6 7/9] tests: Add chained ogg/flac stream dump test.

2025-02-18 Thread Romain Beauxis
Before: Stream ID: 0, codec name: flac, metadata: encoder=Lavc61.19.100 flac:title=First Stream Stream ID: 0, packet PTS: 0, packet DTS: 0, metadata: encoder=Lavc61.19.100 flac:title=First Stream Stream ID: 0, frame PTS: 0, metadata: Stream ID: 0, packet PTS: 4608, packet DTS: 4608, metadata: en

[FFmpeg-devel] [PATCH v6 5/9] libavformat/oggdec.h, libavformat/oggparsevorbis.c: Factor out vorbis metadata update mechanism.

2025-02-18 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 v6 4/9] tests: Add chained ogg/vorbis stream dump test.

2025-02-18 Thread Romain Beauxis
Samples available at: https://www.dropbox.com/scl/fo/xrtrna2rxr1j354hrtymq/AGwemlxHYecBLNmQ8Fsy--4?rlkey=lzilr4m9w4gfdqygoe172vvy8&dl=0 Before the changes: Stream ID: 0, codec name: vorbis, metadata: encoder=Lavc61.19.100 libvorbis:title=First Stream Stream ID: 0, packet PTS: 0, packet DTS: 0, m

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

2025-02-18 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

[FFmpeg-devel] [PATCH v6 3/9] libavformat/oggparsevorbis.c: Don't append new metadata.

2025-02-18 Thread Romain Beauxis
See before/after vorbis tests in following patch. --- libavformat/oggparsevorbis.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c index 9f50ab9ffc..0033d1a224 100644 --- a/libavformat/oggparsevorbis.c +++ b/libavf

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

2025-02-18 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 v6 9/9] tests: Add chained ogg/opus stream dump test.

2025-02-18 Thread Romain Beauxis
Before: Stream ID: 0, codec name: opus, metadata: encoder=Lavc61.19.100 libopus:title=First Stream Stream ID: 0, packet PTS: -312, packet DTS: -312, metadata: encoder=Lavc61.19.100 libopus:title=First Stream Stream ID: 0, frame PTS: -312, metadata: Stream ID: 0, packet PTS: 648, packet DTS: 648,

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

2025-02-18 Thread Rashad Tatum
--- This fixes the av_freep calls from the previous patch. 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_par

Re: [FFmpeg-devel] [PATCH v5 1/6] libavcodec: Add generic metadata injection using AV_PKT_DATA_METADATA_UPDATE

2025-02-18 Thread Romain Beauxis
Le mar. 18 févr. 2025 à 22:11, Romain Beauxis a écrit : > > Le mar. 18 févr. 2025 à 17:28, Lynne a écrit : > > > > On 17/02/2025 17:19, Romain Beauxis wrote: > > > libavcodec/decode.c: intercept `AV_PKT_DATA_METADATA_UPDATE` packet extra > > > data, > > > attach them to the next decoded frame. >

Re: [FFmpeg-devel] [PATCH v5 1/6] libavcodec: Add generic metadata injection using AV_PKT_DATA_METADATA_UPDATE

2025-02-18 Thread Lynne
On 17/02/2025 17:19, Romain Beauxis wrote: libavcodec/decode.c: intercept `AV_PKT_DATA_METADATA_UPDATE` packet extra data, attach them to the next decoded frame. The metadata needs to be cached because there is no guarantee that each packet will generate a decoded frame immediately. `AV_PKT_DAT

Re: [FFmpeg-devel] [PATCH] avcodec/sbcenc: port to AVCodec.get_supported_config()

2025-02-18 Thread Zhao Zhili
> On Feb 19, 2025, at 03:28, James Almer wrote: > > Signed-off-by: James Almer > --- > libavcodec/sbcenc.c | 50 + > 1 file changed, 41 insertions(+), 9 deletions(-) > > diff --git a/libavcodec/sbcenc.c b/libavcodec/sbcenc.c > index f2c4fbe329..d85ab

Re: [FFmpeg-devel] [PATCH] avcodec/sbcenc: port to AVCodec.get_supported_config()

2025-02-18 Thread Zhao Zhili
> On Feb 19, 2025, at 11:08, epira...@gmail.com wrote: > > > > On 19 Feb 2025, at 3:47, Zhao Zhili wrote: > >>> On Feb 19, 2025, at 03:28, James Almer wrote: >>> >>> Signed-off-by: James Almer >>> --- >>> libavcodec/sbcenc.c | 50 + >>> 1 file cha

Re: [FFmpeg-devel] [PATCH v5 1/6] libavcodec: Add generic metadata injection using AV_PKT_DATA_METADATA_UPDATE

2025-02-18 Thread Romain Beauxis
Le mar. 18 févr. 2025 à 17:28, Lynne a écrit : > > On 17/02/2025 17:19, Romain Beauxis wrote: > > libavcodec/decode.c: intercept `AV_PKT_DATA_METADATA_UPDATE` packet extra > > data, > > attach them to the next decoded frame. > > > > The metadata needs to be cached because there is no guarantee th

Re: [FFmpeg-devel] [PATCH] swscale/x86/rgb2rgb: add AVX512ICL version of uyvytoyuv422

2025-02-18 Thread James Almer
On 2/18/2025 11:58 AM, Shreesh Adiga wrote: On Mon, Feb 3, 2025 at 10:03 PM Shreesh Adiga <16567adigashre...@gmail.com> wrote: The scalar loop is replaced with masked AVX512 instructions. For extracting the Y from UYVY, vperm2b is used instead of various AND and packuswb. Instead of loading th

Re: [FFmpeg-devel] [RFC] Documenting metadata keys, informative (non-copied) metadata

2025-02-18 Thread Marvin S.
On 18 Feb 2025, at 17:56, Tomas Härdin wrote: > tor 2025-02-13 klockan 12:54 +0100 skrev Tomas Härdin: >> Hi >> >> In the samples_md5 patch discussion Michael wanted the proposed key >> to >> be documented. But it turns out we don't have any documentation for >> metadata keys! So I'm starting th

[FFmpeg-devel] [PATCH v2] avcodec/codec_internal: remove unnecessary avcodec.h include

2025-02-18 Thread James Almer
Signed-off-by: James Almer --- libavcodec/allcodecs.c | 1 + libavcodec/codec_internal.h | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index 4e1b1c9b45..3be33f5cc4 100644 --- a/libavcodec/allcodecs.c +++ b/libavcode

Re: [FFmpeg-devel] [PATCH] avcodec/v4l2_m2m: Fix segmentation fault due to a missing NULL check in v4l2_context.c

2025-02-18 Thread Nicolas George
Eslam Samy via ffmpeg-devel (HE12025-02-18): > Hi Nicolas, @anchor{What is top-posting?} @section What is top-posting? See @url{https://en.wikipedia.org/wiki/Posting_style#Top-posting}. Instead, use trimmed interleaved/inline replies (@url{https://lists.ffmpeg.org/pipermail/ffmpeg-user/2017-Apr

[FFmpeg-devel] [PATCH 01/11] avutil/opt: allow passing a fake object to av_opt_set()

2025-02-18 Thread James Almer
The result will be a dry run of the process, where no value is set but all the checks are made. Useful for, as the AV_OPT_SEARCH_FAKE_OBJ flag states, run the relevant process without having to allocate the corresponding object. Signed-off-by: James Almer --- libavutil/opt.c | 77 +++

[FFmpeg-devel] [PATCH 02/11] avcodec/encode: add a function to gracefully reconfigure an encoder

2025-02-18 Thread James Almer
In some cases there are compression and resource usage benefits from changing certain encoder values at runtime over of closing, freeing, allocating and initializing a whole new encoder. The most obvious case is rate control, quality settings, and such. As such, this commit introduces a new functio

[FFmpeg-devel] [PATCH 03/11] avcodec/libx264: refactor encoder configuration functions

2025-02-18 Thread James Almer
Will be useful in the next commit. Signed-off-by: James Almer --- libavcodec/libx264.c | 88 1 file changed, 49 insertions(+), 39 deletions(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 409f45fc7d..f5517ad080 100644 --- a/libavcod

[FFmpeg-devel] [PATCH 09/11] fftools/ffmpeg_enc: split off encoder flushing in encoder_thread() into a separate function

2025-02-18 Thread James Almer
Preparation work for the following commits. Signed-off-by: James Almer --- fftools/ffmpeg_enc.c | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c index 8e68831ee8..acb0702385 100644 --- a/fftools/ffmpeg_enc.c ++

[FFmpeg-devel] [PATCH 05/11] avcodec/libaomenc: refactor encoder configuration functions

2025-02-18 Thread James Almer
Will be useful in the next commit. Signed-off-by: James Almer --- libavcodec/libaomenc.c | 238 +++-- 1 file changed, 131 insertions(+), 107 deletions(-) diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c index 0f7571ee7a..38bdff6a38 100644 --- a/li

[FFmpeg-devel] [PATCH 04/11] avcodec/libx264: add support for encoder reconfiguration

2025-02-18 Thread James Almer
Signed-off-by: James Almer --- libavcodec/libx264.c | 28 1 file changed, 28 insertions(+) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index f5517ad080..d2adfa7bc5 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -769,6 +769,32 @@ static v

[FFmpeg-devel] [PATCH 06/11] avcodec/libaomenc: add support for encoder reconfiguration

2025-02-18 Thread James Almer
Signed-off-by: James Almer --- libavcodec/libaomenc.c | 47 +- libavcodec/libx264.c | 27 2 files changed, 51 insertions(+), 23 deletions(-) diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c index 38bdff6a38..d040898b0

[FFmpeg-devel] [PATCH 08/11] fftools/ffmpeg_enc: split off parts of enc_open() into a separate function

2025-02-18 Thread James Almer
Preparation work for the following commits. Signed-off-by: James Almer --- fftools/ffmpeg_enc.c | 33 - 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c index a46af4dce1..8e68831ee8 100644 --- a/fftools/ffm

[FFmpeg-devel] [PATCH 11/11] fftools/ffmpeg: support reinitializing the encoder

2025-02-18 Thread James Almer
With this, an encoding process can change certain values that until now were settable during init only. A graceful reconfiguration will be attempted first, which depends on the capabilities of the underlying encoder. If that fails, a full encoder restart is performed instead. The reconfiguration p

[FFmpeg-devel] [PATCH 10/11] fftools/ffmpeg_enc: store a few more AVCodecContext fields in Encoder

2025-02-18 Thread James Almer
Preparation work for the following commits. Signed-off-by: James Almer --- fftools/ffmpeg.h | 4 fftools/ffmpeg_enc.c | 5 + fftools/ffmpeg_mux_init.c | 8 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 6c

[FFmpeg-devel] [PATCH 07/11] fftools/ffmpeg_filter: add AVOptions to OutputFilter

2025-02-18 Thread James Almer
Preparation work for the following commits. Signed-off-by: James Almer --- fftools/ffmpeg_filter.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 800e2a3f06..09086ca67c 100644 --- a/fftools/ffmpeg_filte

Re: [FFmpeg-devel] [PATCH v2 4/4] fftools/ffmpeg_filter: add -dump_filter_graph option

2025-02-18 Thread epirat07
On 18 Feb 2025, at 13:46, Niklas Haas wrote: > From: Niklas Haas > > Debugging option to dump the filter graph after insertion of auto-filters. > Named such to avoid clashing with the existing -dumpgraph option on lavfi > devices. > --- > doc/ffmpeg.texi | 18 ++ >

Re: [FFmpeg-devel] [RFC] Documenting metadata keys, informative (non-copied) metadata

2025-02-18 Thread Tomas Härdin
tor 2025-02-13 klockan 12:54 +0100 skrev Tomas Härdin: > Hi > > In the samples_md5 patch discussion Michael wanted the proposed key > to > be documented. But it turns out we don't have any documentation for > metadata keys! So I'm starting this thread to talk about it. I reckon > we create a new f

[FFmpeg-devel] [PATCH] avcodec/sbcenc: port to AVCodec.get_supported_config()

2025-02-18 Thread James Almer
Signed-off-by: James Almer --- libavcodec/sbcenc.c | 50 + 1 file changed, 41 insertions(+), 9 deletions(-) diff --git a/libavcodec/sbcenc.c b/libavcodec/sbcenc.c index f2c4fbe329..d85ab76cb0 100644 --- a/libavcodec/sbcenc.c +++ b/libavcodec/sbcenc.c @

[FFmpeg-devel] [PATCH] avcodec/v4l2_m2m: Fix segmentation fault due to a missing NULL check in v4l2_context.c

2025-02-18 Thread Eslam Samy via ffmpeg-devel
--- libavcodec/v4l2_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c index be1df3785b..ea11a689bc 100644 --- a/libavcodec/v4l2_context.c +++ b/libavcodec/v4l2_context.c @@ -329,7 +329,7 @@ start: /* if we a

[FFmpeg-devel] [PATCH 2/3] avformat/isom_tags: Add tag for AVS3

2025-02-18 Thread Zhao Zhili
From: Zhao Zhili --- libavformat/isom_tags.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/isom_tags.c b/libavformat/isom_tags.c index a476efb8f1..f05762beec 100644 --- a/libavformat/isom_tags.c +++ b/libavformat/isom_tags.c @@ -297,6 +297,8 @@ const AVCodecTag ff_codec_movvi

[FFmpeg-devel] [PATCH 1/3] avformat/movenc: Add AVS3 support

2025-02-18 Thread Zhao Zhili
From: Zhao Zhili 'avs3' is registered at mp4ra.org. The Avs3ConfigurationBox 'av3c' inside 'avs3' hasn't been registered yet, but is specified by the AVS3 spec. --- libavformat/movenc.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/libavformat/movenc.c b/libavfo

[FFmpeg-devel] [PATCH 3/3] avcodec/libuavs3d: process extradata

2025-02-18 Thread Zhao Zhili
From: Zhao Zhili --- libavcodec/libuavs3d.c | 120 ++--- 1 file changed, 89 insertions(+), 31 deletions(-) diff --git a/libavcodec/libuavs3d.c b/libavcodec/libuavs3d.c index 53b5faafc5..a22494340c 100644 --- a/libavcodec/libuavs3d.c +++ b/libavcodec/libuavs3d

Re: [FFmpeg-devel] [PATCH] avcodec/v4l2_m2m: Fix segmentation fault due to a missing NULL check in v4l2_context.c

2025-02-18 Thread Nicolas George
Thanks for the patch. Eslam Samy via ffmpeg-devel (HE12025-02-18): > --- > libavcodec/v4l2_context.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c > index be1df3785b..ea11a689bc 100644 > --- a/libavcodec/v4l2_contex

Re: [FFmpeg-devel] [PATCH] avfilter/dnn: add zero-shot image classification using CLIP models

2025-02-18 Thread m.kaindl0208
The new backend is an extension of the existing Torch backend rather than a separate implementation. Inference in CLIP differs from other models as it encodes (embeds) both images and tokenized text labels, then calculates the similarity between the encoded vectors. As a result, its forward pas

[FFmpeg-devel] [PATCH v2 3/4] avfilter/graphdump: add complex format

2025-02-18 Thread Niklas Haas
From: Niklas Haas As an example, the following filter graph (taken from FATE): sws_flags=+accurate_rnd+bitexact; split [main][over]; [over] scale=88:72, pad=96:80:4:4 [overf]; [main][overf] overlay=240:16:format=yuv422 Results in this output: Filter graph: [L0] split=thread_type=0x00

[FFmpeg-devel] [PATCH v2 1/4] avfilter/graphdump: implement options parsing

2025-02-18 Thread Niklas Haas
From: Niklas Haas And use it to make the output format configurable. I also added a "none" option to explicitly disable the behavior (in case a previous command line argument was used to enable it). This has the added benefit of giving the default "pretty" format the ID 1, allowing `-dumpgraph 1

[FFmpeg-devel] [PATCH v2 4/4] fftools/ffmpeg_filter: add -dump_filter_graph option

2025-02-18 Thread Niklas Haas
From: Niklas Haas Debugging option to dump the filter graph after insertion of auto-filters. Named such to avoid clashing with the existing -dumpgraph option on lavfi devices. --- doc/ffmpeg.texi | 18 ++ fftools/ffmpeg.h| 1 + fftools/ffmpeg_filter.c

[FFmpeg-devel] [PATCH v2 2/4] avfilter/filters: keep track of AVFilterPad labels

2025-02-18 Thread Niklas Haas
From: Niklas Haas For use in diagnostic code e.g. avfilter_graph_dump(). --- libavfilter/avfilter.c| 2 ++ libavfilter/filters.h | 6 ++ libavfilter/graphparser.c | 6 ++ 3 files changed, 14 insertions(+) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index e732556

Re: [FFmpeg-devel] [PATCH v2 1/4] avfilter/graphdump: implement options parsing

2025-02-18 Thread Niklas Haas
On Tue, 18 Feb 2025 13:46:00 +0100 Niklas Haas wrote: > From: Niklas Haas > > And use it to make the output format configurable. > > I also added a "none" option to explicitly disable the behavior (in case a > previous command line argument was used to enable it). This has the added > benefit of

Re: [FFmpeg-devel] [PATCH 1/8] avformat/http: Return EIO for prematurely broken connection

2025-02-18 Thread Tomas Härdin
Based on replies so far it seems no one is objecting to the following patches: * [PATCH 1/8] avformat/http: Return EIO for prematurely broken connection * [PATCH 2/8] libavcodec/wmadec: Return AVERROR_INVALIDDATA on decoding errors * [PATCH 4/8] avformat/flacdec: Return correct error-codes on read

Re: [FFmpeg-devel] [PATCH] avfilter/dnn: add zero-shot image classification using CLIP models

2025-02-18 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > Maximilian Kaindl > Sent: Tuesday, February 18, 2025 12:29 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH] avfilter/dnn: add zero-shot image > classification using CLIP

Re: [FFmpeg-devel] [PATCH] avcodec/v4l2_m2m: Fix segmentation fault due to a missing NULL check in v4l2_context.c

2025-02-18 Thread Eslam Samy via ffmpeg-devel
Hi Nicolas, Sorry for the misunderstanding—this is my first patch submitted to FFmpeg, and I'm still familiarizing myself with the codebase. The logic behind the change I made is explained here: Ticket #9722. I tried to fix the issue by adding a null check to prevent the segmentation fault wh

Re: [FFmpeg-devel] [PATCH] swscale/x86/rgb2rgb: add AVX512ICL version of uyvytoyuv422

2025-02-18 Thread Shreesh Adiga
On Mon, Feb 3, 2025 at 10:03 PM Shreesh Adiga <16567adigashre...@gmail.com> wrote: > > The scalar loop is replaced with masked AVX512 instructions. > For extracting the Y from UYVY, vperm2b is used instead of > various AND and packuswb. > > Instead of loading the vectors with interleaved lanes as d

Re: [FFmpeg-devel] [PATCH] avcodec/codec_internal: remove unnecessary avcodec.h include

2025-02-18 Thread Tomas Härdin
sön 2025-02-16 klockan 17:50 -0300 skrev James Almer: > Signed-off-by: James Almer > --- >  libavcodec/codec_internal.h | 5 ++--- >  1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/libavcodec/codec_internal.h > b/libavcodec/codec_internal.h > index 5b2db74590..01033f4705 100644 >

[FFmpeg-devel] [PATCH] ffmpeg_demux: add option readrate_catchup

2025-02-18 Thread Gyan Doshi
At present, if reading from a readrate-limited input is stalled, then upon resumption, ffmpeg will read the input without any throttle till the average readrate matches the specified readrate. This new option allows to set a speed limit when reading is resumed until the average readrate matches th