Re: [FFmpeg-devel] avformat_seek_file in H265 video seeks beyond the max_ts passed in?

2024-08-12 Thread A
I apologize for the spam but I realized that this ML is mostly about patches. So I created a ticket here: https://trac.ffmpeg.org/ticket/11137 Errata for the previous email: the seek timestamps should not be doubles but int64_t so the correct max_ts is 5120, not 0.5. On Mon, Aug 12, 2024 at 4:24

[FFmpeg-devel] avformat_seek_file in H265 video seeks beyond the max_ts passed in?

2024-08-12 Thread A
Hi, My understanding is that avformat_seek_file() with these parameters: avformat_seek_file(format_context, 0, INT64_MIN, timestamp, timestamp) should seek in the video to an I-Frame that is strictly <= timestamp (because ts=timestamp and max_ts=timestamp). However, the observed behavior that I

Re: [FFmpeg-devel] [PATCH 08/10] lavfi: move AVFilterLink.{frame, sample}_count_{in, out} to FilterLink

2024-08-12 Thread Michael Niedermayer
On Sun, Aug 11, 2024 at 04:42:09PM +0200, Anton Khirnov wrote: > --- > libavfilter/af_adrc.c | 3 ++- > libavfilter/af_afftdn.c | 3 ++- > libavfilter/af_ashowinfo.c| 4 +++- > libavfilter/af_dynaudnorm.c | 3 ++- > libavfilter/af_volume.c | 4 +++- > libavfilter/asr

Re: [FFmpeg-devel] [PATCH] cbs_vp9: Ensure that the two superframe_header instances are identical

2024-08-12 Thread Michael Niedermayer
On Sun, Aug 11, 2024 at 07:17:25PM +0100, Mark Thompson wrote: > Fixes: use of uninitialized value > Fixes: > 70907/clusterfuzz-testcase-minimized-ffmpeg_BSF_VP9_METADATA_fuzzer-6339363208757248 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ff

Re: [FFmpeg-devel] [PATCH 5/6] tools/target_dec_fuzzer: Use av_buffer_allocz() to avoid missing slices to have unpredictable content

2024-08-12 Thread Michael Niedermayer
On Sat, Aug 10, 2024 at 12:34:16PM -0300, James Almer wrote: > On 8/9/2024 5:09 PM, Michael Niedermayer wrote: > > Hi > > > > On Fri, Aug 09, 2024 at 03:56:42AM +0200, Kacper Michajlow wrote: > > > On Fri, 9 Aug 2024 at 00:06, Michael Niedermayer > > > wrote: > > > > > > > > On Thu, Aug 08, 202

Re: [FFmpeg-devel] [PATCH] avcodec/av1_vaapi: Enable AV1Profile2 VAAPI support.

2024-08-12 Thread David Wu via ffmpeg-devel
thanks you Mark! will follow up on libva changes first. David On 2024-08-11 14:42, Mark Thompson wrote: On 11/08/2024 19:27, Mark Thompson wrote: On 30/07/2024 21:02, David (Ming Qiang) Wu via ffmpeg-devel wrote: AV1Profile2 VAAPI is supported and tested on AMD VCN5. Signed-off-by: David (Mi

Re: [FFmpeg-devel] [PATCH] avcodec/adpcm: adpcm_dtk is stereo only

2024-08-12 Thread James Almer
On 8/12/2024 2:55 PM, Andreas Rheinhardt wrote: James Almer: Fixes ticket #11133 Signed-off-by: James Almer --- libavcodec/adpcm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 8d358bc414..623d33fd02 100644 --- a/libavc

Re: [FFmpeg-devel] [PATCH] avcodec/adpcm: adpcm_dtk is stereo only

2024-08-12 Thread Andreas Rheinhardt
James Almer: > Fixes ticket #11133 > > Signed-off-by: James Almer > --- > libavcodec/adpcm.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c > index 8d358bc414..623d33fd02 100644 > --- a/libavcodec/adpcm.c > +++ b/libavcodec/a

[FFmpeg-devel] [PATCH] lavc/mpegvideoencdsp: R-V V pix_norm1

2024-08-12 Thread Rémi Denis-Courmont
T-Head C908: pix_norm1_c: 480.2 pix_norm1_rvv_i64: 146.9 SpacemiT X60: pix_norm1_c: 478.2 pix_norm1_rvv_i64: 92.7 --- libavcodec/riscv/mpegvideoencdsp_init.c | 9 ++--- libavcodec/riscv/mpegvideoencdsp_rvv.S | 27 + 2 files changed, 33 insertions(+), 3 d

[FFmpeg-devel] [PATCH] avcodec/sga: av_assert1 check init_get_bits8()

2024-08-12 Thread Michael Niedermayer
Related: CID1473562 Unchecked return value Related: CID1473592 Unchecked return value Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/sga.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/sga.c b/libavcodec/sga.c index 61

[FFmpeg-devel] [PATCH] avcodec/adpcm: adpcm_dtk is stereo only

2024-08-12 Thread James Almer
Fixes ticket #11133 Signed-off-by: James Almer --- libavcodec/adpcm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 8d358bc414..623d33fd02 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -276,6 +276,9 @@ static a

[FFmpeg-devel] [PATCH] tools/target_dec_fuzzer: Check that FFv1 doesnt leave uninitialized memory in its buffers

2024-08-12 Thread Michael Niedermayer
Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- tools/target_dec_fuzzer.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index 794b5b92cc7..5fccf2ab8fc 100644 --- a/tools/target_dec_fuzzer.

Re: [FFmpeg-devel] [PATCH 34/39] lavc/decode: reindent after previous commit

2024-08-12 Thread Anton Khirnov
pushed patches up to this one -- Anton Khirnov ___ 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 subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH 37/39] lavc/hevcdec: use a ContainerFifo to hold frames scheduled for output

2024-08-12 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2024-08-10 01:52:36) > Anton Khirnov: > > @@ -3442,12 +3448,15 @@ static int hevc_receive_frame(AVCodecContext > > *avctx, AVFrame *frame) > > if (ret < 0) > > return ret; > > > > -if (s->output_frame->buf[0]) { > > -av_frame_move_ref(frame,

Re: [FFmpeg-devel] [PATCH 36/39] lavc: add private container FIFO API

2024-08-12 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2024-08-10 02:09:19) > Anton Khirnov: > > +static int container_fifo_init_entry(FFRefStructOpaque opaque, void *obj) > > +{ > > +ContainerFifo *cf = opaque.nc; > > +void **pobj = obj; > > + > > +*pobj = cf->container_alloc(); > > +if (!*pobj) > > +