[FFmpeg-devel] [PATCH] avcodec/cbs_h266: more restrictive check on pps_tile_idx_delta_val

2023-10-21 Thread Nuo Mi
Fixes: out of array access Fixes: 62603/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5837632490569728 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg --- libavcodec/cbs_h266_syntax_template.c | 7 +-- 1 file changed, 5

[FFmpeg-devel] [PATCH] avcodec/cbs_h266: fix SPS VUI extension data leak

2023-10-21 Thread Nuo Mi
Fixes: VUI extension leak Fixes: 63004/clusterfuzz-testcase-minimized-ffmpeg_BSF_VVC_METADATA_fuzzer-4928832253329408 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg --- libavcodec/cbs_h2645.c | 10 +- 1 file changed, 9 insertions(+),

[FFmpeg-devel] hwcontext_vulkan: improve queue family init code

2023-10-21 Thread Lynne
When users zero-init'd the struct, or left it as-is, the encode queue family matched the graphics queue family, which led it to be incorrectly logged as being used for encode. This just improves the logging so this isn't printed anymore. Patch attached. >From

Re: [FFmpeg-devel] [PATCH 5/6] avutil/tx_template: fix integer ovberflwo in fft3()

2023-10-21 Thread Lynne
Oct 22, 2023, 02:36 by mich...@niedermayer.cc: > Fixes: signed integer overflow: -1028966111 + -1314089526 cannot be > represented in type 'int' > Fixes: > 63174/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_FIXED_fuzzer-5853273711837184 > > Found-by: continuous fuzzing process >

[FFmpeg-devel] [PATCH 6/6] tools/target_dec_fuzzer: Adjust threshold for CSCD

2023-10-21 Thread Michael Niedermayer
Fixes: Timeout Fixes: 63362/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CSCD_fuzzer-4694620065628160 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 | 1 + 1 file

[FFmpeg-devel] [PATCH 5/6] avutil/tx_template: fix integer ovberflwo in fft3()

2023-10-21 Thread Michael Niedermayer
Fixes: signed integer overflow: -1028966111 + -1314089526 cannot be represented in type 'int' Fixes: 63174/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_FIXED_fuzzer-5853273711837184 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg

[FFmpeg-devel] [PATCH 4/6] avcodec/dovi_rpu: Use 64 bit in get_us/se_coeff()

2023-10-21 Thread Michael Niedermayer
Fixes: shift exponent 32 is too large for 32-bit type 'int' Fixes: 63151/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5067531154751488 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer ---

[FFmpeg-devel] [PATCH 3/6] avcodec/apedec: Fix integer overflow in predictor_decode_stereo_3950()

2023-10-21 Thread Michael Niedermayer
Fixes: signed integer overflow: 1900031961 + 553590817 cannot be represented in type 'int' Fixes: 63061/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5166188298371072 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg

[FFmpeg-devel] [PATCH 2/6] avcodec/cbs: Do not assert on traces beyond 255 bits

2023-10-21 Thread Michael Niedermayer
Fixes: Assertion length < 256 failed at libavcodec/cbs.c:517 Fixes: 62673/clusterfuzz-testcase-minimized-ffmpeg_BSF_TRACE_HEADERS_fuzzer-6490971837431808 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer ---

[FFmpeg-devel] [PATCH 1/6] avformat/mov: Check that is_still_picture_avif has no trak based streams

2023-10-21 Thread Michael Niedermayer
Fixes: Assertion failure in mov_read_iloc( in mov_read_iloc()) Fixes: 62866/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-5282997370486784 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer ---

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/rv60: RealVideo 6.0 decoder

2023-10-21 Thread Peter Ross
On Wed, Oct 18, 2023 at 04:42:01PM +0200, Anton Khirnov wrote: > Quoting Peter Ross (2023-10-18 10:03:54) [..] > I think you can simplify this into: > if (s->last_frame[NEXT_PIC]->data[0]) { > av_frame_move_ref(frame, s->last_frame[NEXT_PIC]); > *got_frame = 1; > } [..] >

Re: [FFmpeg-devel] [PATCH v2 00/13] YUVJ removal

2023-10-21 Thread Michael Niedermayer
On Fri, Oct 20, 2023 at 07:13:00PM -0400, Ronald S. Bultje wrote: > Hi, > > On Fri, Oct 20, 2023 at 12:14 PM Vittorio Giovara < > vittorio.giov...@gmail.com> wrote: > > > tbh while it's great that this functionality exists *somewhere* in ffmpeg, > > this is really something that should belong to

Re: [FFmpeg-devel] [FFmpeg-cvslog] avcodec/magicyuv: add vlc multi support

2023-10-21 Thread Michael Niedermayer
On Sat, Oct 21, 2023 at 11:00:19AM +0200, Paul B Mahol wrote: > On Sat, Oct 21, 2023 at 2:13 AM Michael Niedermayer > wrote: > > > On Wed, Sep 06, 2023 at 10:19:27PM +, Paul B Mahol wrote: > > > ffmpeg | branch: master | Paul B Mahol | Mon Aug 28 > > 12:20:15 2023 +0200|

Re: [FFmpeg-devel] trac spam

2023-10-21 Thread Michael Niedermayer
On Fri, Oct 20, 2023 at 06:24:14PM +, Cosmin Stejerean via ffmpeg-devel wrote: > > > > On Oct 20, 2023, at 10:53 AM, Michael Koch > > wrote: > > > >> should i add /pipermail/ffmpeg-trac to robots.txt ? > > is there anyone who googles in these ffmpeg trac archives ? > > > > I don't. > >

Re: [FFmpeg-devel] [PATCH 4/5] aarch64: Manually tweak vertical alignment/indentation in tx_float_neon.S

2023-10-21 Thread Martin Storsjö
On Tue, 17 Oct 2023, Martin Storsjö wrote: Favour left aligned columns over right aligned columns. In principle either style should be ok, but some of the cases easily lead to incorrect indentation in the surrounding code (see a couple of cases fixed up in the preceding patch), and show up in

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/pthread_frame: Remove ff_thread_release_buffer()

2023-10-21 Thread Andreas Rheinhardt
Andreas Rheinhardt: > It is unnecessary since the removal of non-thread-safe callbacks > in e0786a8eeb9e7c8feb057e83f284491f0a87e463. Since then, the > AVCodecContext has only been used as logcontext. > > Removing ff_thread_release_buffer() allowed to remove AVCodecContext* > parameters from

Re: [FFmpeg-devel] [PATCH] ffbuild: Add gzip -n flag to fix reproducible builds

2023-10-21 Thread Anton Khirnov
Quoting Rob Hall (2023-09-30 01:25:39) > Without this flag, timestamps were embedded into the final > binary if CUDA was enabled. > > Signed-off-by: Rob Hall > --- > ffbuild/common.mak | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks, will push soonish if nobody objects. --

[FFmpeg-devel] [REFUND-REQUEST] VDD23 Travel

2023-10-21 Thread Anton Khirnov
Hi, requesting refund of travel costs for VDD23: * PRG -> DUB: 2789 CZK ≈ 116 € * DUB -> PRG: 112.44 € * bus DUB <-> Dublin: 12 € total: ~240 € Thanks, -- Anton Khirnov ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH 30/42] avcodec/vp9: Switch to ProgressFrames

2023-10-21 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2023-09-19 21:57:22) > @@ -1605,7 +1590,8 @@ static int vp9_decode_frame(AVCodecContext *avctx, > AVFrame *frame, > f->flags &= ~AV_FRAME_FLAG_KEY; > f->pict_type = (s->s.h.keyframe || s->s.h.intraonly) ? AV_PICTURE_TYPE_I > : AV_PICTURE_TYPE_P; > > -

Re: [FFmpeg-devel] [PATCH 29/42] avcodec/vp3: Switch to ProgressFrames

2023-10-21 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2023-09-19 21:57:21) > Avoids implicit av_frame_ref() and therefore allocations > and error checks. It also avoids explicitly allocating > the AVFrames (done implicitly when getting the buffer) > and it also allows to reuse the flushing code for freeing > the

Re: [FFmpeg-devel] [PATCH 28/42] avcodec/mimic: Switch to ProgressFrames

2023-10-21 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2023-09-19 21:57:20) > Avoids implicit av_frame_ref() and therefore allocations > and error checks. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/mimic.c | 60 -- > 1 file changed, 21 insertions(+), 39

Re: [FFmpeg-devel] [PATCH 27/42] avcodec/pthread_frame: Add new progress API

2023-10-21 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2023-09-19 21:57:19) > Frame-threaded decoders with inter-frame dependencies > use the ThreadFrame API for syncing. It works as follows: > > During init each thread allocates an AVFrame for every > ThreadFrame. > > Thread A reads the header of its packet and allocates

[FFmpeg-devel] [REFUND-REQUEST] Travel & Accomodation for LDP 23

2023-10-21 Thread Thilo Borgmann via ffmpeg-devel
Hi, I went to Prag for the LinuxDays Prague 23 [1] by Bus and stayed at the university Dorm/Hotel. Bus:54,98 EUR Hotel: 154,08 EUR (converted from CZK by VISA) = Total: 209,06 EUR Thanks, Thilo [1] https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2023-October/315777.html

Re: [FFmpeg-devel] [FFmpeg-cvslog] avcodec/magicyuv: add vlc multi support

2023-10-21 Thread Paul B Mahol
On Sat, Oct 21, 2023 at 2:13 AM Michael Niedermayer wrote: > On Wed, Sep 06, 2023 at 10:19:27PM +, Paul B Mahol wrote: > > ffmpeg | branch: master | Paul B Mahol | Mon Aug 28 > 12:20:15 2023 +0200| [8b7391cb5ff94ce94612fda69392a95d7ab1ffd0] | > committer: Paul B Mahol > > > >