Re: [FFmpeg-devel] [PATCH v2] aacenc: move encoder to libavcodec/aac/

2025-03-01 Thread Michael Niedermayer
On Fri, Feb 28, 2025 at 02:54:40PM +0100, Lynne wrote: > --- > libavcodec/Makefile| 18 ++ > libavcodec/aac/Makefile| 7 +++ > libavcodec/{ => aac}/aac.h | 0 > libavcodec/{ => aac}/aaccoder.c

[FFmpeg-devel] CVE Number forensics [Help welcome]

2025-03-01 Thread Michael Niedermayer
Hi all As you probably know, there are CVE numbers missing from our security page (because they have never been reported to us or we somehow missed them) tools/compare-cvelists.sh lists them ATM 110 If someone wants to help, you just need google, git branch --contains maybe the internet archieve

[FFmpeg-devel] #7107 [PATCH] Fix seeking beyond file duration by returning an error when metadata is incorrect

2025-03-01 Thread Haris
Hi, If we try to extract audio from an .mp3 file starting from a point that is beyond its total duration with command: *./ffmpeg -ss 600 -i eye.mp3 -c:a libopus output.opus* We should hit this if statement in libavformat/seek.c: if (min_ts > ts || max_ts < ts) return -1; But if the file's metada

Re: [FFmpeg-devel] [PATCH] dvbsubenc: add a disable_2bpp option to work around some decoders.

2025-03-01 Thread Ronan Waide
> On 1 Mar 2025, at 12:55, Soft Works > wrote: > > > >> -Original Message- >> From: ffmpeg-devel On Behalf Of Waider >> Sent: Samstag, 1. März 2025 12:43 >> To: ffmpeg-devel@ffmpeg.org >> Subject: [FFmpeg-devel] [PATCH] dvbsubenc: add a disable_2bpp option to >> work around some decod

[FFmpeg-devel] [PATCH v3] libavcodec/dvbsubenc.c: add a disable_2bpp option to work around some decoders.

2025-03-01 Thread Ronan Waide
(changes from previous attempt: fixed an error in the docfile and made sure I'm diffing against origin/master) As noted in the code in several places, some DVB subtitle decoders don't handle 2bpp color. This patch adds a disable_2bpp option which disables the 2bpp format; subtitles which would us

Re: [FFmpeg-devel] [PATCH v3] libavcodec/dvbsubenc.c: add a disable_2bpp option to work around some decoders.

2025-03-01 Thread Ronan Waide
> On 1 Mar 2025, at 14:10, Ronan Waide wrote: > > (changes from previous attempt: fixed an error in the docfile and made sure > I'm diffing against origin/master) > > As noted in the code in several places, some DVB subtitle decoders > don't handle 2bpp color. This patch adds a disable_2bpp opt

Re: [FFmpeg-devel] [PATCH 1/2] aarch64/hevcdsp_idct_neon: Optimize idct dc

2025-03-01 Thread Martin Storsjö
On Thu, 20 Feb 2025, Zhao Zhili wrote: From: Zhao Zhili clang does better than the assembly code before the patch, especially for small size: hevc_idct_4x4_dc_8_c: 11.2 ( 1.00x) hevc_idct_4x4_dc_8_neon:15.5 ( 0.73x) hevc_idct_4

Re: [FFmpeg-devel] [PATCH] swscale/aarch64/hscale.S Refactor hscale_16_to_15__fs_4

2025-03-01 Thread Martin Storsjö
On Sun, 2 Mar 2025, Martin Storsjö wrote: On Sat, 1 Mar 2025, Krzysztof Pyrkosz via ffmpeg-devel wrote: Before/after: A78 hscale_16_to_15__fs_4_dstW_8_neon: 86.8 ( 1.72x) hscale_16_to_15__fs_4_dstW_24_neon:147.5 ( 2.73x) hscale_16_to_15__fs_4_dstW_128_

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

2025-03-01 Thread Michael Niedermayer
Hi Nicolas On Fri, Feb 28, 2025 at 03:38:41PM +0100, Nicolas George wrote: > James Almer (HE12025-02-28): > > Who among those still around after last Christmas (and in the TC, or > > ultimately the GA, both of which would have a last word) is against your fun > > things? > > I could give you name

[FFmpeg-devel] [PATCH v4] libavformat/rtsp: Change ff_sdp_parse and sdp_parse_line to handle memory alloc errors

2025-03-01 Thread Rashad Tatum
for RTSPStream and RTSPSource --- libavformat/rtsp.c | 32 ++-- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 5ea471b40c..d16fd24ade 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -418,7 +418,7

[FFmpeg-devel] [PATCH v2 2/3] avcodec/utils: use new ff_timecode_set_smpte function

2025-03-01 Thread Timo Rothenpieler
--- libavcodec/Makefile| 2 ++ libavcodec/timecode_internal.c | 19 +++ libavcodec/utils.c | 29 +++-- libavutil/Makefile | 3 +++ 4 files changed, 27 insertions(+), 26 deletions(-) create mode 100644 libavcodec/timecod

[FFmpeg-devel] [PATCH v3] libavformat/rtsp: Change ff_sdp_parse and sdp_parse_line to handle memory alloc errors

2025-03-01 Thread Rashad Tatum
for RTSPStream and RTSPSource --- libavformat/rtsp.c | 33 +++-- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 25a7602832..bf5db93e44 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -423,7 +423,

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/aarch64/vvc: Use rounding shift NEON instruction

2025-03-01 Thread Martin Storsjö
On Wed, 19 Feb 2025, Krzysztof Pyrkosz via ffmpeg-devel wrote: --- Before and after on A78 dmvr_8_12x20_neon: 86.2 ( 6.90x) dmvr_8_20x12_neon: 94.8 ( 5.93x) dmvr_8_20x20_neon: 141.5 (

Re: [FFmpeg-devel] [PATCH] libswscale/arm/swscale_unscaled: Fix function prototype

2025-03-01 Thread Martin Storsjö
On Mon, 24 Feb 2025, Adam Lackorzynski wrote: Constify dstStrice argument of rgbx_to_nv12_neon_16_wrapper to be compatible with other functions as used in function assignment. Signed-off-by: Adam Lackorzynski --- libswscale/arm/swscale_unscaled.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[FFmpeg-devel] [PATCH v4 6/7] fftools/ffmpeg_graphprint: Add options for filtergraph printing

2025-03-01 Thread softworkz
From: softworkz The key benefits are: - Different to other graph printing methods, this is outputting: - all graphs with runtime state (including auto-inserted filters) - each graph with its inputs and outputs - all filters with their in- and output pads - all connections between all

[FFmpeg-devel] [PATCH v4 4/7] fftools/ffmpeg_filter: Move some declaration to new header file

2025-03-01 Thread softworkz
From: softworkz to allow print_graph to access the information. Signed-off-by: softworkz --- fftools/ffmpeg_filter.c | 188 +--- fftools/ffmpeg_filter.h | 232 2 files changed, 233 insertions(+), 187 deletions(-) create mode

[FFmpeg-devel] [PATCH v4 7/7] fftools: Enable filtergraph printing and update docs

2025-03-01 Thread softworkz
From: softworkz Enables filtergraph printing and adds the options to the docs Signed-off-by: softworkz --- doc/ffmpeg.texi | 10 ++ fftools/ffmpeg.c| 4 fftools/ffmpeg_filter.c | 5 + 3 files changed, 19 insertions(+) diff --git a/doc/ffmpeg.texi b/doc/ffmpe

Re: [FFmpeg-devel] [PATCH] swscale/aarch64: dotprod implementation of rgba32_to_Y

2025-03-01 Thread Martin Storsjö
On Thu, 27 Feb 2025, Krzysztof Pyrkosz via ffmpeg-devel wrote: --- I was curious whether it's possible to implement this function without any widening, and it turns out it not only is, but it's quite performant at the same time! The idea is to split the 16 bit coefficients into lower and upper

[FFmpeg-devel] [PATCH v4 5/7] avfilter/avfilter: Add avfilter_link_get_hw_frames_ctx()

2025-03-01 Thread softworkz
From: softworkz --- doc/APIchanges | 3 +++ libavfilter/avfilter.c | 9 + libavfilter/avfilter.h | 12 libavfilter/version.h | 2 +- 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index 5a64836e25..354716399d 100644

[FFmpeg-devel] [PATCH] avformat/hlsenc: fix CODECS Attribute hard code in hevc EXT-X-STREAM-INF

2025-03-01 Thread Jack Lau via ffmpeg-devel
fix ticket: 10786 parse the SPS from extradata and get profile_compatibility, tier, constraints which was been hard code before. HEVC CODECS Attribute reference to: ISO/IEC14496-15 Signed-off-by: Jack Lau --- libavformat/hlsenc.c | 37 ++--- 1 file changed, 34 in

[FFmpeg-devel] [PATCH v4 1/7] fftools/textformat: Extract and generalize textformat api from ffprobe.c

2025-03-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 671 + fftools/textformat/avtextformat.h | 171 fftools/textformat/avtextwriters.h | 68 +++ fftools/textformat/tf_compact.c| 282 fftools/textformat/tf_defa

Re: [FFmpeg-devel] [PATCH] swscale/aarch64/hscale.S Refactor hscale_16_to_15__fs_4

2025-03-01 Thread Martin Storsjö
On Sat, 1 Mar 2025, Krzysztof Pyrkosz via ffmpeg-devel wrote: Before/after: A78 hscale_16_to_15__fs_4_dstW_8_neon: 86.8 ( 1.72x) hscale_16_to_15__fs_4_dstW_24_neon:147.5 ( 2.73x) hscale_16_to_15__fs_4_dstW_128_neon: 614.0 ( 3.14x) hscal

Re: [FFmpeg-devel] [PATCH] aac: move SBR code to libavcodec/aac

2025-03-01 Thread Michael Niedermayer
On Fri, Feb 28, 2025 at 03:50:39PM +0100, Lynne wrote: > --- > libavcodec/Makefile| 8 > libavcodec/aac/Makefile| 9 + > libavcodec/{ => aac}/aac_defines.h | 0 > libavcodec/aac/aacdec.c| 4 ++-

Re: [FFmpeg-devel] [PATCH 2/2] aarch64/hevcdsp_idct_neon: Add implementation for idct dc 12

2025-03-01 Thread Martin Storsjö
On Thu, 20 Feb 2025, Zhao Zhili wrote: From: Zhao Zhili Reduce binary size at the same time. The performance compared to clang -O3 is the same. --- libavcodec/aarch64/hevcdsp_idct_neon.S| 43 ++- libavcodec/aarch64/hevcdsp_init_aarch64.c | 8 + 2 files changed, 35 in

Re: [FFmpeg-devel] [PATCH 23/30] avutil: remove deprecated FF_API_FRAME_PKT

2025-03-01 Thread James Almer
On 3/1/2025 2:29 PM, Marton Balint wrote: On Sun, 23 Feb 2025, James Almer wrote: Deprecated since 2023-03-20. This also removes the POS variable from the filters without replacement, not just the API. I suggest we remove frame->pkt_size but we keep frame->pkt_pos around for now. The

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/aarch64/vvc: Optimize vvc_avg{8, 10, 12}

2025-03-01 Thread Martin Storsjö
On Wed, 19 Feb 2025, Krzysztof Pyrkosz via ffmpeg-devel wrote: --- As you've noticed in later patches; most of this commentery _is_ valuable to keep in the commit message, so I'd keep most of this, including the performance diff, in the commit message (i.e. above the ---). This patch repl

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/aarch64/ac3dsp_neon.S: Optimize ac3_extract_exponents

2025-03-01 Thread Martin Storsjö
On Fri, 28 Feb 2025, Krzysztof Pyrkosz via ffmpeg-devel wrote: Before and after: A78 ac3_extract_exponents_n512_neon: 503.2 ( 3.36x) ac3_extract_exponents_n3072_neon: 2986.2 ( 3.35x) ac3_extract_exponents_n512_neon: 211.2 ( 8.02x)

[FFmpeg-devel] [PATCH] vulkan: take refs of frames using the regular buffer ref path

2025-03-01 Thread Lynne
This simplifies the code, reduces allocations, and critically, does not store references of frames, along with references to hw_frames_ctx. The issue was that storing refs to frames while transferring stored refs to hw_frames_ctx of frames, and so created a circular dependency, which caused the Vul

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/aarch64/ac3dsp_neon.S: Optimize ac3_sum_square_butterfly_int32_neon

2025-03-01 Thread Martin Storsjö
On Fri, 28 Feb 2025, Krzysztof Pyrkosz via ffmpeg-devel wrote: Before and after: A78 ac3_sum_square_bufferfly_int32_neon: 484.8 ( 2.00x) ac3_sum_square_bufferfly_int32_neon: 468.2 ( 2.08x) A72 ac3_sum_square_bufferfly_int32_neon: 793.6 ( 1.

[FFmpeg-devel] [PATCH] libavformat/rtsp: Change ff_sdp_parse and sdp_parse_line to handle memory alloc errors

2025-03-01 Thread Rashad Tatum
for RTSPStream and RTSPSource --- libavformat/rtsp.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 25a7602832..c5c47801cc 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -423,7 +423,7 @@ static void parse

Re: [FFmpeg-devel] [PATCH 2/8] ffprobe/avtextformat: Rename and move writer functions and options

2025-03-01 Thread Michael Niedermayer
Hi On Fri, Feb 28, 2025 at 02:43:50AM +, Soft Works wrote: > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Michael Niedermayer > > Sent: Freitag, 28. Februar 2025 03:29 > > To: FFmpeg development discussions and patches > > Subject: Re: [FFmpeg-devel] [PATCH 2/8]

[FFmpeg-devel] [PATCH] avformat/mov: fix overflow in corrected_dts calculation

2025-03-01 Thread James Almer
Fixes: Integer-overflow Fixes: 400093647/clusterfuzz-testcase-minimized-media_metadata_parser_fuzzer-4794341562187776 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: James Almer --- libavformat/mov.c | 2 +- 1 file changed, 1 i

Re: [FFmpeg-devel] [PATCH 2/8] ffprobe/avtextformat: Rename and move writer functions and options

2025-03-01 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Michael Niedermayer > Sent: Samstag, 1. März 2025 23:02 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH 2/8] ffprobe/avtextformat: Rename and > move writer functions and options > > Hi > > O

[FFmpeg-devel] [PATCH v4 2/7] fftools/ffprobe: Change to use textformat api

2025-03-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/Makefile | 12 + fftools/ffprobe.c | 1849 - 2 files changed, 142 insertions(+), 1719 deletions(-) diff --git a/fftools/Makefile b/fftools/Makefile index 4499799818..664b73b161 100644 --- a/ffto

[FFmpeg-devel] [PATCH v4 3/7] fftools/ffprobe: Rename writer_print_section_* and WriterContext

2025-03-01 Thread softworkz
From: softworkz separated for better clarity of the preceding commit Signed-off-by: softworkz ren --- fftools/ffprobe.c | 361 +++--- 1 file changed, 178 insertions(+), 183 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index f398057df7

[FFmpeg-devel] [PATCH v4 0/7] print_graphs: Complete Filtergraph Printing

2025-03-01 Thread ffmpegagent
This new version of the patchset starts by extracting the text formatting and writing APIs from ffprobe.c into a subfolder under fftools. The type naming follows public API naming style, ramping up for making it a public API in the future without another big renaming. The extraction of the text fo

[FFmpeg-devel] [PATCH] avformat/id3v2: Support null-separated multi-value properties

2025-03-01 Thread softworkz
From: softworkz Fixes Trac ticket https://trac.ffmpeg.org/ticket/6949 Signed-off-by: softworkz --- avformat/id3v2: Support null-separated multi-value properties Fixes Trac ticket https://trac.ffmpeg.org/ticket/6949 Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr

[FFmpeg-devel] [PATCH v3 4/7] fftools/ffmpeg_filter: Move some declaration to new header file

2025-03-01 Thread softworkz
From: softworkz to allow print_graph to access the information. Signed-off-by: softworkz --- fftools/ffmpeg_filter.c | 188 +--- fftools/ffmpeg_filter.h | 232 2 files changed, 233 insertions(+), 187 deletions(-) create mode

[FFmpeg-devel] [PATCH v3 3/7] fftools/ffprobe: Rename writer_print_section_* and WriterContext

2025-03-01 Thread softworkz
From: softworkz separated for better clarity of the preceding commit Signed-off-by: softworkz ren --- fftools/ffprobe.c | 361 +++--- 1 file changed, 178 insertions(+), 183 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index f398057df7

[FFmpeg-devel] [PATCH v3 7/7] fftools: Enable filtergraph printing and update docs

2025-03-01 Thread softworkz
From: softworkz Enables filtergraph printing and adds the options to the docs Signed-off-by: softworkz --- doc/ffmpeg.texi | 10 ++ fftools/ffmpeg.c| 4 fftools/ffmpeg_filter.c | 5 + 3 files changed, 19 insertions(+) diff --git a/doc/ffmpeg.texi b/doc/ffmpe

[FFmpeg-devel] [PATCH v3 5/7] avfilter/avfilter Add avfilter_link_get_hw_frames_ctx()

2025-03-01 Thread softworkz
From: softworkz --- doc/APIchanges | 3 +++ libavfilter/avfilter.c | 9 + libavfilter/avfilter.h | 12 libavfilter/version.h | 2 +- 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index ac506f4b56..acdd473a67 100644

[FFmpeg-devel] [PATCH v3 0/7] print_graphs: Complete Filtergraph Printing

2025-03-01 Thread ffmpegagent
This new version of the patchset starts by extracting the text formatting and writing APIs from ffprobe.c into a subfolder under fftools. The type naming follows public API naming style, ramping up for making it a public API in the future without another big renaming. The extraction of the text fo

[FFmpeg-devel] [PATCH v3 1/7] fftools/textformat: Extract and generalize textformat api from ffprobe.c

2025-03-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 671 + fftools/textformat/avtextformat.h | 171 fftools/textformat/avtextwriters.h | 68 +++ fftools/textformat/tf_compact.c| 282 fftools/textformat/tf_defa

[FFmpeg-devel] [PATCH v3 2/7] fftools/ffprobe: Change to use textformat api

2025-03-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/Makefile | 12 + fftools/ffprobe.c | 1849 - 2 files changed, 142 insertions(+), 1719 deletions(-) diff --git a/fftools/Makefile b/fftools/Makefile index 4499799818..664b73b161 100644 --- a/ffto

[FFmpeg-devel] [PATCH v3 6/7] fftools/ffmpeg_graphprint: Add options for filtergraph printing

2025-03-01 Thread softworkz
From: softworkz The key benefits are: - Different to other graph printing methods, this is outputting: - all graphs with runtime state (including auto-inserted filters) - each graph with its inputs and outputs - all filters with their in- and output pads - all connections between all

[FFmpeg-devel] [PATCH] dvbsubenc: add a disable_2bpp option to work around some decoders.

2025-03-01 Thread Waider
As noted in the code in several places, some DVB subtitle decoders don't handle 2bpp color. This patch adds a disable_2bpp option which disables the 2bpp format; subtitles which would use 2bpp will be bumped up to 4bpp. Signed-off-by: Ronan Waide --- doc/encoders.texi | 24 libav

Re: [FFmpeg-devel] [PATCH] dvbsubenc: add a disable_2bpp option to work around some decoders.

2025-03-01 Thread Ronan Waide
> On 1 Mar 2025, at 11:43, Waider wrote: > > As noted in the code in several places, some DVB subtitle decoders > don't handle 2bpp color. This patch adds a disable_2bpp option which > disables the 2bpp format; subtitles which would use 2bpp will be bumped > up to 4bpp. I'm a first-time patc

Re: [FFmpeg-devel] [PATCH] dvbsubenc: add a disable_2bpp option to work around some decoders.

2025-03-01 Thread Ronan Waide
As noted in the code in several places, some DVB subtitle decoders don't handle 2bpp color. This patch adds a disable_2bpp option which disables the 2bpp format; subtitles which would use 2bpp will be bumped up to 4bpp. Signed-off-by: Ronan Waide --- doc/encoders.texi | 27 ++ lib

Re: [FFmpeg-devel] [PATCH] dvbsubenc: add a disable_2bpp option to work around some decoders.

2025-03-01 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Waider > Sent: Samstag, 1. März 2025 12:43 > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH] dvbsubenc: add a disable_2bpp option to > work around some decoders. > > As noted in the code in several places, some DVB su

Re: [FFmpeg-devel] [PATCH v3] libavcodec/dvbsubenc.c: add a disable_2bpp option to work around some decoders.

2025-03-01 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Ronan > Waide > Sent: Samstag, 1. März 2025 15:30 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v3] libavcodec/dvbsubenc.c: add a > disable_2bpp option to work around some decoders. > > > On 1 Mar 2025, at 14:1

[FFmpeg-devel] [PATCH 3/3] avutil/hwcontext_vulkan: add frames_sync() implementation

2025-03-01 Thread Niklas Haas
From: Niklas Haas Using a new internal function to wait explicitly for all execution pools to be done executing their internal commands. --- libavutil/hwcontext_vulkan.c | 15 +++ libavutil/vulkan.c | 10 ++ libavutil/vulkan.h | 5 + 3 files changed,

[FFmpeg-devel] [PATCH 2/3] avfilter/hwupload: wait for all pending transfers on uninit()

2025-03-01 Thread Niklas Haas
From: Niklas Haas Uploads can be asynchronous, so we need to wait for them on unit to prevent a cyclic reference from keeping the hwfc alive indefinitely, since there is no other way for the hwfc to know when prior commands should be cleaned up. In theory, it might be possible for this to be sig

[FFmpeg-devel] [PATCH 1/3] avutil/hwcontext: add av_hwframe_transfer_wait_all()

2025-03-01 Thread Niklas Haas
From: Niklas Haas When hardware device contexts perform asynchronous operations, there is nobody to clean up after asynchronous commands emitted by av_hwframe_transfer_data(). In this case, the only way to cleanly uninit without leaving device resources and memory hanging, is to add some sort of

Re: [FFmpeg-devel] [PATCH 23/30] avutil: remove deprecated FF_API_FRAME_PKT

2025-03-01 Thread Marton Balint
On Sun, 23 Feb 2025, James Almer wrote: Deprecated since 2023-03-20. This also removes the POS variable from the filters without replacement, not just the API. I suggest we remove frame->pkt_size but we keep frame->pkt_pos around for now. Regards, Marton Signed-off-by: James Alme

[FFmpeg-devel] [PATCH] avcodec/dvbsubdec: Fix conditions for fallback to default resolution

2025-03-01 Thread softworkz
From: softworkz The previous code expected a segment of type CLUT definition to exist in order to accept a set of segments to be complete. This was an incorrect assumption as the presence of a CLUT segment is not mandatory. (version 1.6.1 of the spec is probably a bit more clear about this than e

[FFmpeg-devel] [PATCH 3/3] lavu: bump minor and add APIChanges entry for new GRAY32 pixfmts

2025-03-01 Thread Lynne
--- doc/APIchanges | 3 +++ libavutil/version.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index 0778665152..5a64836e25 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -2,6 +2,9 @@ The last version increases of all libraries were

[FFmpeg-devel] [PATCH 2/3] APIChanges: add entry for new AMD AMF pixfmt

2025-03-01 Thread Lynne
--- doc/APIchanges | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/APIchanges b/doc/APIchanges index 86126014e8..0778665152 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -2,6 +2,9 @@ The last version increases of all libraries were on 2024-03-07 API changes, most recent first:

[FFmpeg-devel] [PATCH 1/3] APIChanges: add entries for new planar gray and float gray pixfmts

2025-03-01 Thread Lynne
Was not done when the patches were pushed. --- doc/APIchanges | 4 1 file changed, 4 insertions(+) diff --git a/doc/APIchanges b/doc/APIchanges index ac506f4b56..86126014e8 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -2,6 +2,10 @@ The last version increases of all libraries were on 2

[FFmpeg-devel] [PATCH] swscale/aarch64/hscale.S Refactor hscale_16_to_15__fs_4

2025-03-01 Thread Krzysztof Pyrkosz via ffmpeg-devel
Before/after: A78 hscale_16_to_15__fs_4_dstW_8_neon: 86.8 ( 1.72x) hscale_16_to_15__fs_4_dstW_24_neon:147.5 ( 2.73x) hscale_16_to_15__fs_4_dstW_128_neon: 614.0 ( 3.14x) hscale_16_to_15__fs_4_dstW_144_neon: 680.5 ( 3.18x)

Re: [FFmpeg-devel] [PATCH v3] libavcodec/dvbsubenc.c: add a disable_2bpp option to work around some decoders.

2025-03-01 Thread Ronan Waide
> On 1 Mar 2025, at 15:00, Soft Works > wrote: > > > >> -Original Message- >> From: ffmpeg-devel On Behalf Of Ronan >> Waide >> Sent: Samstag, 1. März 2025 15:30 >> To: ffmpeg-devel@ffmpeg.org >> Subject: Re: [FFmpeg-devel] [PATCH v3] libavcodec/dvbsubenc.c: add a >> disable_2bpp op

[FFmpeg-devel] [PATCH v4] libavcodec/dvbsubenc.c: add a disable_2bpp option to work around some decoders.

2025-03-01 Thread Ronan Waide
As noted in the code in several places, some DVB subtitle decoders don't handle 2bpp color. This patch adds a disable_2bpp option which disables the 2bpp format; subtitles which would use 2bpp will be bumped up to 4bpp. Signed-off-by: Ronan Waide --- doc/encoders.texi | 27 ++ l

[FFmpeg-devel] [PATCH] avformat/dump: Print stream start offsets for input streams

2025-03-01 Thread softworkz
From: softworkz Seeing the offset of video and audio streams to each other is often a useful metric in diagnosing and understanding issues with playback or transcoding. This commit adds those offsets to the stream info print. Signed-off-by: softworkz --- avformat/dump: Print stream start of

[FFmpeg-devel] [PATCH v2] libavformat/rtsp: Change ff_sdp_parse and sdp_parse_line to handle memory alloc errors

2025-03-01 Thread Rashad Tatum
for RTSPStream and RTSPSource --- libavformat/rtsp.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 25a7602832..8665f460e4 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -423,7 +423,7