[FFmpeg-devel] [PATCH 4/4] avformat/id3v2: read_uslt() check for the amount read

2024-03-19 Thread Michael Niedermayer
Fixes: timeout Fixes: 66783/clusterfuzz-testcase-minimized-ffmpeg_dem_GENH_fuzzer-5356884892647424 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/id3v2.c | 2 +- 1 file changed, 1

[FFmpeg-devel] [PATCH 3/4] tools/target_dec_fuzzer: Adjust RKA threshold up further

2024-03-19 Thread Michael Niedermayer
Fixes: timeout Fixes: 66636/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RKA_fuzzer-5030913165557760 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- tools/target_dec_fuzzer.c | 2 +- 1 file

[FFmpeg-devel] [PATCH 2/4] avcodec/vmixdec: Check shift before use

2024-03-19 Thread Michael Niedermayer
Fixes: shift exponent 32 is too large for 32-bit type 'unsigned int' Fixes: 65909/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VMIX_fuzzer-519459745831321 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer

[FFmpeg-devel] [PATCH 1/4] avcodec/jpeg2000htdec: Check M_b / magp before using it in a shift

2024-03-19 Thread Michael Niedermayer
Fixes: shift exponent -1 is negative Fixes: 65378/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5457678193197056 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer ---

Re: [FFmpeg-devel] [PATCH 1/3] avformat/iamfenc: Remove always-false check

2024-03-19 Thread James Almer
On 3/19/2024 12:29 AM, Andreas Rheinhardt wrote: This muxer does not have the AVFMT_NOSTREAMS flag; therefore it is checked generically that there is at least a stream. Signed-off-by: Andreas Rheinhardt --- libavformat/iamfenc.c | 5 - 1 file changed, 5 deletions(-) diff --git

[FFmpeg-devel] [PATCH 3/3] Revert "avcodec/h264_mp4toannexb_bsf: fix missing PS before IDR frames"

2024-03-19 Thread Michael Niedermayer
This reverts commit d3aa0cd16f5e952bc346b7c74b4dcba95151a63a. Fixes: out of array write Fixes: 64407/clusterfuzz-testcase-minimized-ffmpeg_BSF_H264_MP4TOANNEXB_fuzzer-4966763443650560 The bsf code performs 2 iterations, the first counts how much space is needed than allocates and the 2nd pass

[FFmpeg-devel] [PATCH 2/3] avformat/mov: Check sample_count and auxiliary_info_default_size to be 0

2024-03-19 Thread Michael Niedermayer
This combination causes 0 size arrays to be allocated and to leak later Fixes: memleak Fixes: 64342/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-4520993686945792 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael

[FFmpeg-devel] [PATCH 1/3] avformat/wady: Check >0 samplerate and channels 1 || 2.

2024-03-19 Thread Michael Niedermayer
The WADY decoder only supports mono and stereo This fixes a probetest failure Signed-off-by: Michael Niedermayer --- libavformat/wady.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/wady.c b/libavformat/wady.c index 6dcc0018f3..81a64c6d3f 100644 ---

[FFmpeg-devel] [PATCH 13/13] avformat: Make init function out of write_header functions if possible

2024-03-19 Thread Andreas Rheinhardt
Also mark them as av_cold while just at it. Signed-off-by: Andreas Rheinhardt --- libavformat/bit.c | 4 ++-- libavformat/chromaprint.c | 4 ++-- libavformat/filmstripenc.c | 4 ++-- libavformat/gif.c | 4 ++-- libavformat/supenc.c | 4 ++-- 5 files changed, 10

[FFmpeg-devel] [PATCH 12/13] avformat: Enforce codec_id where appropriate

2024-03-19 Thread Andreas Rheinhardt
E.g. chromaprint expects to be fed 16bit signed PCM in native endianness, yet there was no check for this. Similarly for other muxers. Use the new FF_OFMT_FLAG_ONLY_DEFAULT_CODECS to enfore this where appropriate, e.g. for pcm/raw muxers. Signed-off-by: Andreas Rheinhardt ---

[FFmpeg-devel] [PATCH 11/13] avformat/ttmlenc: Avoid unnecessary block

2024-03-19 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/ttmlenc.c | 55 --- 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/libavformat/ttmlenc.c b/libavformat/ttmlenc.c index af2e2b85a5..1ffbd66f80 100644 --- a/libavformat/ttmlenc.c +++

[FFmpeg-devel] [PATCH 10/13] avformat/mux: Add flag for "only default codecs allowed"

2024-03-19 Thread Andreas Rheinhardt
AVOutputFormat has default codecs for audio, video and subtitle and often these are the only codecs of this type allowed. So add a flag to AVOutputFormat so that this can be checked generically. Signed-off-by: Andreas Rheinhardt --- libavformat/ac4enc.c | 17 ++---

[FFmpeg-devel] [PATCH 09/13] avformat: Enforce one-stream limit where appropriate

2024-03-19 Thread Andreas Rheinhardt
Several muxers (e.g. pcm muxers) did not check the number of streams even though the individual streams were not recoverable from the muxed files. This commit changes this by using the FF_OFMT_MAX_ONE_OF_EACH flag where appropriate. Signed-off-by: Andreas Rheinhardt --- libavformat/a64.c

[FFmpeg-devel] [PATCH 08/13] avformat/mux: Add flag for "not more than one stream of each type"

2024-03-19 Thread Andreas Rheinhardt
More exactly: Not more than one stream of each type for which a default codec (i.e. AVOutputFormat.(audio|video|subtitle)_codec) is set; for those types for which no such codec is set (or for which no designated default codec in AVOutputFormat exists at all) no streams are permitted. Given that

[FFmpeg-devel] [PATCH 07/13] fate/filter-audio: Don't use pcm output for channelsplit test

2024-03-19 Thread Andreas Rheinhardt
This test muxes two streams into a single pcm file, although the two streams are of course not recoverable from the output (unless one has extra information). So use the streamhash muxer instead (which also provides coverage for it; it was surprisingly unused in FATE so far). This is in

[FFmpeg-devel] [PATCH 06/13] avformat/mux_utils: Don't report that AV_CODEC_ID_NONE can be muxed

2024-03-19 Thread Andreas Rheinhardt
If AVOutputFormat.video_codec, audio_codec or subtitle_codec is AV_CODEC_ID_NONE, it means that there is no default codec for this format and not that it is supported to mux AV_CODEC_ID_NONE. Signed-off-by: Andreas Rheinhardt --- libavformat/mux_utils.c | 7 --- 1 file changed, 4

[FFmpeg-devel] [PATCH 02/13] libavformat/westwood_audenc: Use proper logcontext

2024-03-19 Thread Andreas Rheinhardt
(AVStream did not have an AVClass when this muxer was added.) Signed-off-by: Andreas Rheinhardt --- libavformat/westwood_audenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/westwood_audenc.c b/libavformat/westwood_audenc.c index 84a871e478..46456e2ecb

[FFmpeg-devel] [PATCH 05/13] avformat/amr: Move write_header closer to muxer definition

2024-03-19 Thread Andreas Rheinhardt
Avoids one #if. Signed-off-by: Andreas Rheinhardt --- libavformat/amr.c | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/libavformat/amr.c b/libavformat/amr.c index 85815e8675..1b80810302 100644 --- a/libavformat/amr.c +++

[FFmpeg-devel] [PATCH 04/13] avformat/codec2: Don't allocate Codec2Context for muxer

2024-03-19 Thread Andreas Rheinhardt
Only the demuxers use it. Signed-off-by: Andreas Rheinhardt --- libavformat/codec2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavformat/codec2.c b/libavformat/codec2.c index 4a3e10c6e3..9ed57af0a8 100644 --- a/libavformat/codec2.c +++ b/libavformat/codec2.c @@ -318,7 +318,6 @@ const

[FFmpeg-devel] [PATCH 03/13] avformat/mux: Rename FF_FMT_ALLOW_FLUSH->FF_OFMT_FLAG_ALLOW_FLUSH

2024-03-19 Thread Andreas Rheinhardt
It better reflects that this is a muxer-only flag. Also document the flag. Signed-off-by: Andreas Rheinhardt --- libavdevice/pulse_audio_enc.c | 2 +- libavformat/fifo.c | 2 +- libavformat/hlsenc.c | 2 +- libavformat/matroskaenc.c | 6 +++---

[FFmpeg-devel] [PATCH 01/13] avformat/mp3enc: Improve query_codec

2024-03-19 Thread Andreas Rheinhardt
Signal that anything except MP3 and the ID3V2 attached pic types are forbidden. Signed-off-by: Andreas Rheinhardt --- libavformat/mp3enc.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c index cb250a46ca..4a02a45069 100644 ---

Re: [FFmpeg-devel] [PATCH] avutil/timestamp: keep microsecond precision in av_ts_make_time_string

2024-03-19 Thread Andreas Rheinhardt
Marton Balint: > av_ts_make_time_string() used "%.6g" format in the past, but this format was > losing precision even when the timestamp to be printed was not that large. For > example for 3 hours (10800) seconds, only 1 decimal digit was printed, which > made this format inaccurate when it was

Re: [FFmpeg-devel] [PATCH v3 2/2] lavc/vulkan_av1: port to the new stable API

2024-03-19 Thread Mark Thompson
On 18/03/2024 05:33, Lynne wrote: Mar 17, 2024, 16:36 by s...@jkqxz.net: On 13/03/2024 16:38, Lynne wrote: Tested by multiple users on multiple operating systems, driver implementations and test samples to work. Co-Authored-by: Dave Airlie From e2d31951f46fcc10e1263b8603e486e111e9578c

Re: [FFmpeg-devel] [PATCH 4/4] avcodec/libx265: encode dovi RPUs

2024-03-19 Thread Vittorio Giovara
On Tue, Mar 19, 2024 at 7:04 PM Niklas Haas wrote: > On Tue, 19 Mar 2024 21:59:53 + Cosmin Stejerean via ffmpeg-devel < > ffmpeg-devel@ffmpeg.org> wrote: > > > > > > > On Mar 19, 2024, at 2:39 PM, Derek Buitenhuis < > derek.buitenh...@gmail.com> wrote: > > > > > > The reason I never

Re: [FFmpeg-devel] [PATCH v3 1/2] ffmpeg: set extra_hw_frames to account for frames held in queues

2024-03-19 Thread Mark Thompson
On 18/03/2024 05:35, Xiang, Haihao wrote: On So, 2024-03-17 at 20:49 +, Mark Thompson wrote: Since e0da916b8f5b079a4865eef7f64863f50785463d the ffmpeg utility has held multiple frames output by the decoder in internal queues without telling the decoder that it is going to do so.  When the

Re: [FFmpeg-devel] [PATCH 4/4] avcodec/libx265: encode dovi RPUs

2024-03-19 Thread Niklas Haas
On Tue, 19 Mar 2024 21:59:53 + Cosmin Stejerean via ffmpeg-devel wrote: > > > > On Mar 19, 2024, at 2:39 PM, Derek Buitenhuis > > wrote: > > > > The reason I never implemented this back when I adde RPU side data is that > > there is a strong chance of generating broken files. > > > >

Re: [FFmpeg-devel] [PATCH v3 2/2] lavc/get_buffer: Add a warning on failed allocation from a fixed pool

2024-03-19 Thread Mark Thompson
On 19/03/2024 04:16, Xiang, Haihao wrote: On Ma, 2024-03-18 at 21:33 +, Mark Thompson wrote: On 18/03/2024 05:53, Xiang, Haihao wrote: On So, 2024-03-17 at 20:51 +, Mark Thompson wrote: For hardware cases where we are forced to have a fixed pool of frames allocated up-front (such as

Re: [FFmpeg-devel] [PATCH] change av_ts_make_time_string precision

2024-03-19 Thread Allan Cady via ffmpeg-devel
On Sunday, March 17, 2024 at 04:43:31 PM PDT, Marton Balint wrote: > On Wed, 13 Mar 2024, Allan Cady via ffmpeg-devel wrote:>> On Tuesday, March > 12, 2024 at 02:24:47 PM PDT, Marton Balint wrote:>>> On Tue, > 12 Mar 2024, Allan Cady via ffmpeg-devel wrote: On Monday, March 11, 2024

[FFmpeg-devel] [PATCH v6 4/4] doc/indevs: update CC extraction example to use RCWT muxer

2024-03-19 Thread Marth64
Signed-off-by: Marth64 --- doc/indevs.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/indevs.texi b/doc/indevs.texi index d1b2bacf8b..fc14737181 100644 --- a/doc/indevs.texi +++ b/doc/indevs.texi @@ -1069,9 +1069,9 @@ ffplay -f lavfi

[FFmpeg-devel] [PATCH v6 3/4] doc/{muxers, demuxers}: add RCWT demuxer doc and refresh the muxer's doc to be consistent

2024-03-19 Thread Marth64
Signed-off-by: Marth64 --- doc/demuxers.texi | 26 ++ doc/muxers.texi | 29 +++-- 2 files changed, 45 insertions(+), 10 deletions(-) diff --git a/doc/demuxers.texi b/doc/demuxers.texi index b70f3a38d7..47e82eda55 100644 --- a/doc/demuxers.texi

[FFmpeg-devel] [PATCH v6 2/4] avformat/rcwtenc: remove repeated documentation

2024-03-19 Thread Marth64
The high level summary of RCWT can be delegated doc/muxers, which makes it easier to maintain and more consistent with the documentation of the demuxer. Signed-off-by: Marth64 --- libavformat/rcwtenc.c | 5 - 1 file changed, 5 deletions(-) diff --git a/libavformat/rcwtenc.c

[FFmpeg-devel] [PATCH v6 1/4] avformat/rcwtdec: add RCWT Closed Captions demuxer

2024-03-19 Thread Marth64
Raw Captions With Time (RCWT) is a format native to ccextractor, a commonly used open source tool for processing 608/708 Closed Captions (CC) sources. RCWT can be used to archive the original CC bitstream. The muxer was added in January 2024. In this commit, add the demuxer. One can now demux

[FFmpeg-devel] [PATCH v6 0/4] RCWT Closed Captions demuxer (meta)

2024-03-19 Thread Marth64
Since v5: * probe check is more strict, passes probetest fuzz * documentation typos Signed-off-by: Marth64 -- 2.34.1 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link

[FFmpeg-devel] [PATCH 2/2] configure: check for C17 by default

2024-03-19 Thread James Almer
Signed-off-by: James Almer --- No changes since last version. configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index f8381d15ff..e6689f7077 100755 --- a/configure +++ b/configure @@ -4012,7 +4012,7 @@ mandir_default='${prefix}/share/man' #

[FFmpeg-devel] [PATCH 1/2 v2] configure: make the C and C++ standard settable

2024-03-19 Thread James Almer
While ensuring it's at least C11, the minimum supported version. Also, enforce C11 on the host compiler, same as we already do for C11 on the target compiler. Signed-off-by: James Almer --- Fixed the fallback code. configure | 56 ++- 1 file

Re: [FFmpeg-devel] [PATCH v5 1/4] avformat/rcwtdec: add RCWT Closed Captions demuxer

2024-03-19 Thread Marth64
Yes, v6 is on the way with fix (validated working with probetest parameters above). I can check the format version, of which there is only 1 known version. Thanks for catching this. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH 4/4] avcodec/libx265: encode dovi RPUs

2024-03-19 Thread Cosmin Stejerean via ffmpeg-devel
> On Mar 19, 2024, at 2:39 PM, Derek Buitenhuis > wrote: > > The reason I never implemented this back when I adde RPU side data is that > there is a strong chance of generating broken files. > > That's because if we do anything to the video with swscale, etc., we're > now encoding RPUs that

Re: [FFmpeg-devel] [PATCH 2/2] avfilter/vf_scale2ref: switch to FFFrameSync

2024-03-19 Thread Michael Niedermayer
On Wed, Mar 13, 2024 at 01:24:25PM +0100, Niklas Haas wrote: > From: Niklas Haas > > This filter's existing design has a number of issues: > > - There is no guarantee whatsoever about the order in which frames are > pushed onto the main and ref link, due to this being entirely > dependent

Re: [FFmpeg-devel] [PATCH v5 1/4] avformat/rcwtdec: add RCWT Closed Captions demuxer

2024-03-19 Thread Michael Niedermayer
On Tue, Mar 19, 2024 at 12:39:10PM -0500, Marth64 wrote: > Signed-off-by: Marth64 > --- > Changelog| 2 +- > doc/demuxers.texi| 29 > libavformat/Makefile | 1 + > libavformat/allformats.c | 1 + > libavformat/rcwtdec.c| 148

Re: [FFmpeg-devel] [PATCH 2/2] configure: check for C17 by default

2024-03-19 Thread Michael Niedermayer
On Tue, Mar 19, 2024 at 10:21:52PM +0100, Michael Niedermayer wrote: > On Tue, Mar 19, 2024 at 03:58:18PM -0300, James Almer wrote: > > Signed-off-by: James Almer > > --- > > configure | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/configure b/configure > > index

Re: [FFmpeg-devel] [PATCH 2/2] configure: check for C17 by default

2024-03-19 Thread Michael Niedermayer
On Tue, Mar 19, 2024 at 03:58:18PM -0300, James Almer wrote: > Signed-off-by: James Almer > --- > configure | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure b/configure > index b10d081549..a9a9a65ca2 100755 > --- a/configure > +++ b/configure > @@ -4012,7

[FFmpeg-devel] [PATCH 6/6] doc/filters: extend af_channelmap documentation

2024-03-19 Thread Marton Balint
Signed-off-by: Marton Balint --- doc/filters.texi | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 913365671d..18f0d1c5a7 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -4291,14 +4291,18 @@ It accepts the

[FFmpeg-devel] [PATCH 5/6] avfilter/af_channelmap: add some additional checks for the mappings

2024-03-19 Thread Marton Balint
- Properly initialize all the mappings to -1 by default. - Make sure every output channel is assigned exactly once - Autodetect a native layout when only native channels are present - Always honor the user specified layout, but make sure the mapping is compatible with it The last item is a

[FFmpeg-devel] [PATCH 4/6] avfilter/af_channelmap: factorize checking indexes against a channel layout

2024-03-19 Thread Marton Balint
Signed-off-by: Marton Balint --- libavfilter/af_channelmap.c | 41 ++--- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/libavfilter/af_channelmap.c b/libavfilter/af_channelmap.c index 1ecbddd462..62e11103ad 100644 --- a/libavfilter/af_channelmap.c

[FFmpeg-devel] [PATCH 3/6] avfilter/af_channelmap: disallow channel index 64

2024-03-19 Thread Marton Balint
MAX_CH is 64, therefore the maximum index is 63. Signed-off-by: Marton Balint --- libavfilter/af_channelmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_channelmap.c b/libavfilter/af_channelmap.c index 35dc4c4618..1ecbddd462 100644 ---

[FFmpeg-devel] [PATCH 2/6] avfilter/af_channelmap: fix mapping if in_channel was a string but out_channel was not specified

2024-03-19 Thread Marton Balint
In this case in_channel_idx was never set and the default 0 was used. Suprisingly no one noticed that the respective fate test output was wrong. Signed-off-by: Marton Balint --- libavfilter/af_channelmap.c | 2 +- tests/fate/filter-audio.mak | 2 +- 2 files changed, 2 insertions(+), 2

[FFmpeg-devel] [PATCH 1/6] avfilter/af_channelmap: fix error message if FL source channel was missing

2024-03-19 Thread Marton Balint
FL channel ID is 0, so for an unset value we must check for ID < 0. Regression since 1f96db959c1235bb7079d354e09914a0a2608f62. Signed-off-by: Marton Balint --- libavfilter/af_channelmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_channelmap.c

Re: [FFmpeg-devel] [PATCH] avutil/timestamp: keep microsecond precision in av_ts_make_time_string

2024-03-19 Thread Marton Balint
On Mon, 18 Mar 2024, Marton Balint wrote: av_ts_make_time_string() used "%.6g" format in the past, but this format was losing precision even when the timestamp to be printed was not that large. For example for 3 hours (10800) seconds, only 1 decimal digit was printed, which made this format

Re: [FFmpeg-devel] [PATCH v4 0/4] Fix some active sequences in subtitles

2024-03-19 Thread Marth64
Hi Oneric, I was able to validate the whole set. Here are the tests I did ... (1) test conversion from vtt->ass with bidi mark and visually check display -- pass (2) test slash escape fix with a string e.g. \\Nancy, verify broken before and fixed by patch -- pass (3) test curly brace escape fix

[FFmpeg-devel] [PATCH] lavc/vvc: Fix check whether QG is in first tile col

2024-03-19 Thread Frank Plowman
The second part of this condition is intended to check whether the current quantisation group is in the first CTU column of the current tile. The issue is that ctb_to_col_bd gives the x-ordinate of the first column of the current tile *in CTUs*, while xQg gives the x-ordinate of the quantisation

Re: [FFmpeg-devel] [PATCH] fftools/ffplay: use correct buffersink channel layout parameters

2024-03-19 Thread Marton Balint
On Mon, 18 Mar 2024, James Almer wrote: LGTM if tested. Sorry for the breakage. Please backport it to all the relevant release branches too. OK, will apply. Thanks, Marton On Mon, Mar 18, 2024 at 5:20 PM Marton Balint wrote: Regression since 0995e1f1b31f6e937a1b527407ed3e850f138098.

[FFmpeg-devel] [PATCH 4/4] avcodec/libx265: encode dovi RPUs

2024-03-19 Thread Niklas Haas
From: Niklas Haas libx265 supports these natively, we just need to forward them to the x265picture. --- libavcodec/libx265.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index 92183b9ca26..92b25844ef6 100644 ---

[FFmpeg-devel] [PATCH 3/4] avcodec/libaomenc: encode dovi RPUs as T.35 metadata

2024-03-19 Thread Niklas Haas
From: Niklas Haas Using the new conversion function implemented in the previous commit. --- libavcodec/libaomenc.c | 13 + 1 file changed, 13 insertions(+) diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c index 8c1f84cc9fb..2c8fe524fa7 100644 ---

[FFmpeg-devel] [PATCH 1/4] fftools/ffmpeg_enc: strip DOVI config record for AV1

2024-03-19 Thread Niklas Haas
From: Niklas Haas AV1 streams don't use configuration records, so delete them when encoding to AV1. Ideally this would be, as the comment suggests, handled at the frame-level (and stripped by the av1 encoder), but given the status quo of copying the packet-level data here directly, we should

[FFmpeg-devel] [PATCH 2/4] avcodec/dovi_rpu: implement T.35 payload synthesis

2024-03-19 Thread Niklas Haas
From: Niklas Haas This function converts from DOVI_RPU_BUFFER (raw RPU NAL) to the more standardized T.35 syntax introduced with Dolby Vision Profile 10. --- libavcodec/Makefile | 2 +- libavcodec/dovi_rpu.c | 91 +++ libavcodec/dovi_rpu.h | 10 +

Re: [FFmpeg-devel] [PATCH 2/2] avformat/riffdec: follow the MS docs more strictly for setting wav channel layouts

2024-03-19 Thread Marton Balint
On Tue, 19 Mar 2024, Michael Niedermayer wrote: On Sun, Mar 17, 2024 at 08:57:29PM +0100, Marton Balint wrote: - Only parse the defined masks in dwChannelMask, unless strict_std_compliance is less than normal. This matches with the behaviour of the wav muxer. - Ignore additional bits in

Re: [FFmpeg-devel] [PATCH 2/3] avfilter: add an LCEVC decoding filter

2024-03-19 Thread Cosmin Stejerean via ffmpeg-devel
On Mar 19, 2024, at 10:21 AM, Kieran Kunhya wrote: On Tue, 19 Mar 2024 at 15:27, James Almer mailto:jamr...@gmail.com> > wrote: On 3/19/2024 12:20 PM, Kieran Kunhya wrote:From https://github.com/v-novaltd/LCEVCdec " This software is protected by copyrights and other intellectual property

[FFmpeg-devel] [PATCH 2/2] configure: check for C17 by default

2024-03-19 Thread James Almer
Signed-off-by: James Almer --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index b10d081549..a9a9a65ca2 100755 --- a/configure +++ b/configure @@ -4012,7 +4012,7 @@ mandir_default='${prefix}/share/man' # toolchain ar_default="ar"

[FFmpeg-devel] [PATCH 1/2] configure: make the C and C++ standard settable

2024-03-19 Thread James Almer
Fallback to C11, the minimum supported version, if the requested standard is not supported by the compliler. Also, enforce C11 on the host compiler, same as we already do for C11 on the target compiler. Signed-off-by: James Almer --- configure | 55

Re: [FFmpeg-devel] Add protocol for Android content providers (v4)

2024-03-19 Thread Matthieu Bouron
On Sun, Mar 17, 2024 at 11:28:31PM +0100, Matthieu Bouron wrote: > Diff with previous iteration: > - rebaed on latest master > - applied feedback from Zhao (removed HAVE_SETMODE block, use a typedef > struct, > check that the fd is seekable, moved doc/APIChanges changes to the right > commit)

[FFmpeg-devel] [PATCH v5 4/4] doc/indevs: update CC extraction example to use RCWT muxer

2024-03-19 Thread Marth64
Signed-off-by: Marth64 --- doc/indevs.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/indevs.texi b/doc/indevs.texi index d1b2bacf8b..fc14737181 100644 --- a/doc/indevs.texi +++ b/doc/indevs.texi @@ -1069,9 +1069,9 @@ ffplay -f lavfi

[FFmpeg-devel] [PATCH v5 3/4] doc/muxers: refresh and simplify RCWT muxer documentation

2024-03-19 Thread Marth64
Signed-off-by: Marth64 --- doc/muxers.texi | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/doc/muxers.texi b/doc/muxers.texi index d9dd72e613..9e8de3dc42 100644 --- a/doc/muxers.texi +++ b/doc/muxers.texi @@ -2987,16 +2987,15 @@ ogg files can be

[FFmpeg-devel] [PATCH v5 2/4] avformat/rcwtenc: remove repeated documentation

2024-03-19 Thread Marth64
The high level summary of RCWT can be delegated doc/muxers, which makes it easier to maintain and more consistent with the documentation of the demuxer. Signed-off-by: Marth64 --- libavformat/rcwtenc.c | 5 - 1 file changed, 5 deletions(-) diff --git a/libavformat/rcwtenc.c

[FFmpeg-devel] [PATCH v5 1/4] avformat/rcwtdec: add RCWT Closed Captions demuxer

2024-03-19 Thread Marth64
Signed-off-by: Marth64 --- Changelog| 2 +- doc/demuxers.texi| 29 libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/rcwtdec.c| 148 +++ 5 files changed, 180 insertions(+), 1 deletion(-)

Re: [FFmpeg-devel] [PATCH 2/3] avfilter: add an LCEVC decoding filter

2024-03-19 Thread Kieran Kunhya
On Tue, 19 Mar 2024 at 15:27, James Almer wrote: > On 3/19/2024 12:20 PM, Kieran Kunhya wrote: > > On Tue, 19 Mar 2024 at 15:05, James Almer wrote: > > > >> On 3/19/2024 11:56 AM, Andreas Rheinhardt wrote: > >>> James Almer: > Signed-off-by: James Almer > --- > configure

Re: [FFmpeg-devel] [PATCH] doc/muxers: add flac

2024-03-19 Thread Stefano Sabatini
On date Monday 2024-03-18 17:58:54 +0100, Stefano Sabatini wrote: > On date Tuesday 2024-03-12 22:17:36 +0100, Andreas Rheinhardt wrote: > > Stefano Sabatini: > > > --- > > > doc/muxers.texi | 11 +++ > > > 1 file changed, 11 insertions(+) > > > > > > diff --git a/doc/muxers.texi

Re: [FFmpeg-devel] [PATCH v4] avcodec/mpeg12dec: extract only one type of CC substream

2024-03-19 Thread Stefano Sabatini
On date Tuesday 2024-03-12 18:10:09 +0100, Stefano Sabatini wrote: > On date Tuesday 2024-03-12 10:43:11 -0500, Marth64 wrote: > > In MPEG-2 user data, there can be different types of Closed Captions > > formats embedded (A53, SCTE-20, or DVD). The current behavior of the > > CC extraction code in

Re: [FFmpeg-devel] [PATCH v4] avformat/rcwtdec: add RCWT Closed Captions demuxer

2024-03-19 Thread Marth64
Thank you, v5 on the way with documentation updates and examples. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with

Re: [FFmpeg-devel] [PATCH 2/3] avfilter: add an LCEVC decoding filter

2024-03-19 Thread James Almer
On 3/19/2024 12:20 PM, Kieran Kunhya wrote: On Tue, 19 Mar 2024 at 15:05, James Almer wrote: On 3/19/2024 11:56 AM, Andreas Rheinhardt wrote: James Almer: Signed-off-by: James Almer --- configure| 4 + libavfilter/Makefile | 1 + libavfilter/allfilters.c |

Re: [FFmpeg-devel] [PATCH 2/3] avfilter: add an LCEVC decoding filter

2024-03-19 Thread Kieran Kunhya
On Tue, 19 Mar 2024 at 15:05, James Almer wrote: > On 3/19/2024 11:56 AM, Andreas Rheinhardt wrote: > > James Almer: > >> Signed-off-by: James Almer > >> --- > >> configure| 4 + > >> libavfilter/Makefile | 1 + > >> libavfilter/allfilters.c | 1 + > >>

Re: [FFmpeg-devel] [PATCH 3/3] fftools/ffmpeg: auto insert enhancement filters when available

2024-03-19 Thread James Almer
On 3/19/2024 12:01 PM, Andreas Rheinhardt wrote: James Almer: Signed-off-by: James Almer --- fftools/ffmpeg.h| 3 +++ fftools/ffmpeg_demux.c | 4 fftools/ffmpeg_filter.c | 28 +++- fftools/ffmpeg_opt.c| 3 +++ 4 files changed, 37

Re: [FFmpeg-devel] [PATCH 2/3] avfilter: add an LCEVC decoding filter

2024-03-19 Thread James Almer
On 3/19/2024 11:56 AM, Andreas Rheinhardt wrote: James Almer: Signed-off-by: James Almer --- configure| 4 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_lcevc.c | 466 +++ 4 files changed, 472

Re: [FFmpeg-devel] [PATCH 3/3] fftools/ffmpeg: auto insert enhancement filters when available

2024-03-19 Thread Andreas Rheinhardt
James Almer: > Signed-off-by: James Almer > --- > fftools/ffmpeg.h| 3 +++ > fftools/ffmpeg_demux.c | 4 > fftools/ffmpeg_filter.c | 28 +++- > fftools/ffmpeg_opt.c| 3 +++ > 4 files changed, 37 insertions(+), 1 deletion(-) > > diff --git

Re: [FFmpeg-devel] [PATCH 2/3] avfilter: add an LCEVC decoding filter

2024-03-19 Thread Stefano Sabatini
On date Tuesday 2024-03-19 11:06:35 -0300, James Almer wrote: > Signed-off-by: James Almer > --- > configure| 4 + > libavfilter/Makefile | 1 + > libavfilter/allfilters.c | 1 + > libavfilter/vf_lcevc.c | 466 +++ missing docs,

Re: [FFmpeg-devel] [PATCH] doc/ffmpeg: mention how to pass options to loopback decoders

2024-03-19 Thread Stefano Sabatini
On date Thursday 2024-03-14 11:12:31 +0100, Anton Khirnov wrote: > --- > doc/ffmpeg.texi | 14 ++ > 1 file changed, 10 insertions(+), 4 deletions(-) > > diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi > index a38ef834e1..801c083705 100644 > --- a/doc/ffmpeg.texi > +++

Re: [FFmpeg-devel] [PATCH 2/3] avfilter: add an LCEVC decoding filter

2024-03-19 Thread Andreas Rheinhardt
James Almer: > Signed-off-by: James Almer > --- > configure| 4 + > libavfilter/Makefile | 1 + > libavfilter/allfilters.c | 1 + > libavfilter/vf_lcevc.c | 466 +++ > 4 files changed, 472 insertions(+) > create mode 100644

Re: [FFmpeg-devel] [PATCH v4] avformat/rcwtdec: add RCWT Closed Captions demuxer

2024-03-19 Thread Stefano Sabatini
On date Saturday 2024-03-16 23:29:41 -0500, Marth64 wrote: > Raw Captions With Time (RCWT) is a format native to ccextractor, a commonly > used open source tool for processing 608/708 Closed Captions (CC) sources. > RCWT can be used to archive the original CC bitstream. The muxer was added > in

Re: [FFmpeg-devel] [PATCH 00/14] avcodec/vvcdec: support subpicture

2024-03-19 Thread Nuo Mi
On Tue, Mar 19, 2024 at 6:18 PM Frank Plowman wrote: > On 18/03/2024 14:16, Nuo Mi wrote: > > see introductions here: > https://dashif.org/docs/VVC%20HLS%20overview%20.pdf > > > > Frank Plowman (1): > > avcodec/vvcdec: support rectangular single-slice subpics > > > > Nuo Mi (13): > >

[FFmpeg-devel] [PATCH 3/3] fftools/ffmpeg: auto insert enhancement filters when available

2024-03-19 Thread James Almer
Signed-off-by: James Almer --- fftools/ffmpeg.h| 3 +++ fftools/ffmpeg_demux.c | 4 fftools/ffmpeg_filter.c | 28 +++- fftools/ffmpeg_opt.c| 3 +++ 4 files changed, 37 insertions(+), 1 deletion(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h

[FFmpeg-devel] [PATCH 2/3] avfilter: add an LCEVC decoding filter

2024-03-19 Thread James Almer
Signed-off-by: James Almer --- configure| 4 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_lcevc.c | 466 +++ 4 files changed, 472 insertions(+) create mode 100644 libavfilter/vf_lcevc.c diff --git

[FFmpeg-devel] [PATCH 1/3] libavcodec/h2645_sei: export raw LCEVC metadata

2024-03-19 Thread James Almer
Signed-off-by: James Almer --- libavcodec/h2645_sei.c | 36 libavcodec/h2645_sei.h | 5 + libavcodec/itut35.h| 2 ++ libavutil/frame.c | 1 + libavutil/frame.h | 5 + 5 files changed, 49 insertions(+) diff --git

[FFmpeg-devel] [PATCH v2] libavformat/libsrt.c: Add statistics option to output SRT statistics with av_log()

2024-03-19 Thread Ryan McCartney
--- libavformat/libsrt.c | 37 + 1 file changed, 37 insertions(+) diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c index a7aafea536..80d52b1737 100644 --- a/libavformat/libsrt.c +++ b/libavformat/libsrt.c @@ -56,6 +56,8 @@ typedef struct SRTContext {

[FFmpeg-devel] [PATCH] libavformat/libsrt.c Add statistics option to output SRT statistics with av_log()

2024-03-19 Thread Ryan McCartney
--- libavformat/libsrt.c | 37 + 1 file changed, 37 insertions(+) diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c index a7aafea536..80d52b1737 100644 --- a/libavformat/libsrt.c +++ b/libavformat/libsrt.c @@ -56,6 +56,8 @@ typedef struct SRTContext {

Re: [FFmpeg-devel] [PATCH v3 1/1] avformat/demux: Add durationprobesize AVOption

2024-03-19 Thread Stefano Sabatini
Sorry for the slow replay. On date Monday 2024-03-11 16:57:19 +0100, Nicolas Gaullier wrote: > Yet another probesize used to get the durations when > estimate_timings_from_pts is required. It is aimed at users interested > in better durations probing for itself, or because using >

Re: [FFmpeg-devel] [PATCH v6] libavfi/dnn: add LibTorch as one of DNN backend

2024-03-19 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Guo, > Yejun > Sent: Friday, March 15, 2024 3:56 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org>; wenbin.chen-at-intel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v6] libavfi/dnn: add LibTorch as one

Re: [FFmpeg-devel] [PATCH] x86: Update x86inc.asm

2024-03-19 Thread Henrik Gramner via ffmpeg-devel
On Sat, Mar 16, 2024 at 8:53 PM Henrik Gramner wrote: > Makes things up-to-date with the upstream at > https://code.videolan.org/videolan/x86inc.asm Will push in a few days if there are no comments. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH 00/14] avcodec/vvcdec: support subpicture

2024-03-19 Thread Frank Plowman
On 18/03/2024 14:16, Nuo Mi wrote: > see introductions here: https://dashif.org/docs/VVC%20HLS%20overview%20.pdf > > Frank Plowman (1): > avcodec/vvcdec: support rectangular single-slice subpics > > Nuo Mi (13): > avcodec/vvcdec: NoBackwardPredFlag, only check active pictures >

Re: [FFmpeg-devel] [PATCH] avformat: enable UDP IPv6 multicast interface selection

2024-03-19 Thread RS
This message has been marked as Public on 03/19/2024 09:40Z. On Friday, March 15, 2024 5:27 PM Rémi Denis-Courmont wrote: >> >> localaddr option now properly works with IPv6 addresses. Properly >> resolved interface index in places where default 0 interface index is >> used (marked with TODO:

[FFmpeg-devel] [PATCH] avcodec/d3d12va_decode: remove extra spaces for declaration

2024-03-19 Thread tong1 . wu-at-intel . com
From: Tong Wu Signed-off-by: Tong Wu --- libavcodec/d3d12va_decode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/d3d12va_decode.c b/libavcodec/d3d12va_decode.c index af7cf11640..c61f8c685a 100644 --- a/libavcodec/d3d12va_decode.c +++

Re: [FFmpeg-devel] [PATCH v1] avcodec/cbs_vp8: Improve the bitstream position check

2024-03-19 Thread Dai, Jianhui J
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Monday, March 18, 2024 7:35 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v1] avcodec/cbs_vp8: Improve the > bitstream position check > > Dai, Jianhui J: > > The VP8 compressed

[FFmpeg-devel] [PATCH v2] avcodec/cbs_vp8: Improve the bitstream position check

2024-03-19 Thread Dai, Jianhui J
The VP8 compressed header may not be byte-aligned due to boolean coding. Round up byte count for accurate data positioning. Signed-off-by: Jianhui Dai --- libavcodec/cbs_vp8.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/cbs_vp8.c b/libavcodec/cbs_vp8.c