[FFmpeg-devel] [PATCH v21 07/10] avformat/mov_muxer: Extended MOV muxer to handle EVC video content

2023-04-27 Thread Dawid Kozinski
- Changes in mov_write_video_tag function to handle EVC elementary stream - Provided structure EVCDecoderConfigurationRecord that specifies the decoder configuration information for ISO/IEC 23094-1 video content Signed-off-by: Dawid Kozinski --- libavformat/Makefile| 2 +-

[FFmpeg-devel] [PATCH v21 08/10] avformat/mov_demuxer: Extended MOV demuxer to handle EVC video content

2023-04-27 Thread Dawid Kozinski
- Added evc extension to the list of extensions for ff_mov_demuxer Signed-off-by: Dawid Kozinski --- libavformat/demux.c | 1 + libavformat/mov.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libavformat/demux.c b/libavformat/demux.c index 06de71cd6e..912413c6a8 100644 ---

[FFmpeg-devel] [PATCH v21 10/10] avcodec/evc: Changes in MAINTAINERS file

2023-04-27 Thread Dawid Kozinski
- MAINTAINERS update Signed-off-by: Dawid Kozinski --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 854ccc3fa4..ce7da9681e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -198,6 +198,8 @@ Codecs: libvpx* James

[FFmpeg-devel] [PATCH v21 09/10] avcodec/evc: Changes in Changelog file

2023-04-27 Thread Dawid Kozinski
- Changelog update Signed-off-by: Dawid Kozinski --- Changelog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 8268e42cbc..4877e009df 100644 --- a/Changelog +++ b/Changelog @@ -77,6 +77,8 @@ version 5.1: - remap_opencl filter - added

Re: [FFmpeg-devel] [PATCH 1/2] avformat/imf: fix invalid resource handling

2023-04-27 Thread Anton Khirnov
Quoting p...@sandflow.com (2023-04-26 19:53:01) > From: Pierre-Anthony Lemieux > > --- > libavformat/imf_cpl.c | 14 ++ > 1 file changed, 6 insertions(+), 8 deletions(-) > > diff --git a/libavformat/imf_cpl.c b/libavformat/imf_cpl.c > index ad84a68b13..a7cf5fa360 100644 > ---

[FFmpeg-devel] [PATCH] avformat/adtsenc: do not pass NULL to av_log()

2023-04-27 Thread Paul B Mahol
Patch attached. From 4d990d87cc4df0593abeec8e398556089f1a7c0c Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 27 Apr 2023 10:35:33 +0200 Subject: [PATCH] avformat/adtsenc: do not pass NULL to av_log() Signed-off-by: Paul B Mahol --- libavformat/adtsenc.c | 6 +++--- 1 file changed, 3

[FFmpeg-devel] [PATCH v21 05/10] avcodec/evc_encoder: Provided support for EVC encoder

2023-04-27 Thread Dawid Kozinski
- Added EVC encoder wrapper - Changes in project configuration file and libavcodec Makefile - Added documentation for xeve wrapper Signed-off-by: Dawid Kozinski --- configure | 4 + doc/encoders.texi | 69 + doc/general_contents.texi | 11 + libavcodec/Makefile

[FFmpeg-devel] [PATCH v21 06/10] avcodec/evc_decoder: Provided support for EVC decoder

2023-04-27 Thread Dawid Kozinski
- Added EVC decoder wrapper - Changes in project configuration file and libavcodec Makefile - Added documentation for xevd wrapper Signed-off-by: Dawid Kozinski --- configure | 4 + doc/decoders.texi | 24 ++ doc/general_contents.texi | 10 +- libavcodec/Makefile

[FFmpeg-devel] [PATCH v21 02/10] avcodec/evc_parser: Added parser implementation for EVC format

2023-04-27 Thread Dawid Kozinski
- Added constants definitions for EVC parser - Provided NAL units parsing following ISO_IEC_23094-1 - EVC parser registration Signed-off-by: Dawid Kozinski --- libavcodec/Makefile |1 + libavcodec/evc.h| 155 libavcodec/evc_parser.c | 1485

[FFmpeg-devel] [PATCH v21 04/10] avformat/evc_demuxer: Added demuxer to handle reading EVC video files

2023-04-27 Thread Dawid Kozinski
- Provided AVInputFormat struct describing EVC input format (ff_evc_demuxer) Signed-off-by: Dawid Kozinski --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/evcdec.c | 121 +++ 3 files changed, 123 insertions(+) create

[FFmpeg-devel] [PATCH v21 03/10] avformat/evc_muxer: Added muxer to handle writing EVC encoded data into file or output bytestream

2023-04-27 Thread Dawid Kozinski
- Provided AVOutputFormat structure describing EVC output format (ff_evc_muxer) - Added documentation for EVC muxer Signed-off-by: Dawid Kozinski --- doc/muxers.texi | 6 ++ libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/rawenc.c | 13

[FFmpeg-devel] [PATCH v21 01/10] avcodec/evc: MPEG-5 EVC codec registration

2023-04-27 Thread Dawid Kozinski
Added prerequisites that must be met before providing support for the MPEG-5 EVC codec - Added new entry to codec IDs list - Added new entry to the codec descriptor list - Bumped libavcodec minor version - Added profiles for EVC codec Signed-off-by: Dawid Kozinski --- libavcodec/avcodec.h|

Re: [FFmpeg-devel] [PATCH 1/3] lavf/dv: do not set video timebase more than once

2023-04-27 Thread Anton Khirnov
Quoting Michael Niedermayer (2023-04-26 13:54:10) > On Mon, Apr 24, 2023 at 05:55:51PM +0200, Anton Khirnov wrote: > > Current code will call avpriv_set_pts_info() for each video frame, > > possibly setting a different timebase if the stream framerate changes. > > This violates API conventions, as

Re: [FFmpeg-devel] [PATCH v3 1/5] ccfifo: Properly handle CEA-708 captions through framerate conversion

2023-04-27 Thread Lance Wang
On Wed, Apr 26, 2023 at 10:14 PM Devin Heitmueller < devin.heitmuel...@ltnglobal.com> wrote: > Hi Lance, > > Thank you for your review. Comments inline. > > On Tue, Apr 25, 2023 at 10:28 AM Lance Wang > wrote: > > > +/* Based on the target FPS, figure out the expected cc_count and > > >

[FFmpeg-devel] [PATCH v22 08/10] avformat/mov_demuxer: Extended MOV demuxer to handle EVC video content

2023-04-27 Thread Dawid Kozinski
- Added evc extension to the list of extensions for ff_mov_demuxer Signed-off-by: Dawid Kozinski --- libavformat/demux.c | 1 + libavformat/mov.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libavformat/demux.c b/libavformat/demux.c index 06de71cd6e..912413c6a8 100644 ---

[FFmpeg-devel] [PATCH v22 10/10] avcodec/evc: Changes in MAINTAINERS file

2023-04-27 Thread Dawid Kozinski
- MAINTAINERS update Signed-off-by: Dawid Kozinski --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 854ccc3fa4..ce7da9681e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -198,6 +198,8 @@ Codecs: libvpx* James

[FFmpeg-devel] [PATCH v22 09/10] avcodec/evc: Changes in Changelog file

2023-04-27 Thread Dawid Kozinski
- Changelog update Signed-off-by: Dawid Kozinski --- Changelog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 8268e42cbc..4877e009df 100644 --- a/Changelog +++ b/Changelog @@ -77,6 +77,8 @@ version 5.1: - remap_opencl filter - added

Re: [FFmpeg-devel] [PATCH] MXF - Add jpeg2000 subdescriptor - Sponsored by INA

2023-04-27 Thread Tomas Härdin
> static inline uint16_t rescale_mastering_chroma(AVRational q) > { > @@ -1260,7 +1305,6 @@ static int64_t > mxf_write_cdci_common(AVFormatContext *s, AVStream *st, const UID > f1 *= 2; > } > > - Stray deleted line > +/* Image components number */ > +

Re: [FFmpeg-devel] [PATCH] avfilter: add audio rls filter

2023-04-27 Thread Paul B Mahol
Will apply soon. ___ 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".

[FFmpeg-devel] [PATCH v22 02/10] avcodec/evc_parser: Added parser implementation for EVC format

2023-04-27 Thread Dawid Kozinski
- Added constants definitions for EVC parser - Provided NAL units parsing following ISO_IEC_23094-1 - EVC parser registration Signed-off-by: Dawid Kozinski --- libavcodec/Makefile |1 + libavcodec/evc.h| 155 libavcodec/evc_parser.c | 1497

[FFmpeg-devel] [PATCH v22 04/10] avformat/evc_demuxer: Added demuxer to handle reading EVC video files

2023-04-27 Thread Dawid Kozinski
- Provided AVInputFormat struct describing EVC input format (ff_evc_demuxer) Signed-off-by: Dawid Kozinski --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/evcdec.c | 121 +++ 3 files changed, 123 insertions(+) create

[FFmpeg-devel] [PATCH v22 03/10] avformat/evc_muxer: Added muxer to handle writing EVC encoded data into file or output bytestream

2023-04-27 Thread Dawid Kozinski
- Provided AVOutputFormat structure describing EVC output format (ff_evc_muxer) - Added documentation for EVC muxer Signed-off-by: Dawid Kozinski --- doc/muxers.texi | 6 ++ libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/rawenc.c | 13

Re: [FFmpeg-devel] [PATCH] avcodec/mediacodec: Add VP8 encoder

2023-04-27 Thread Tomas Härdin
ons 2023-04-26 klockan 14:00 + skrev Samuel Raposo Vieira Mira: > Connected FFmpeg to Mediacodec VP8 encoder > --- > configure   |  1 + > libavcodec/Makefile |  1 + > libavcodec/allcodecs.c  |  1 + > libavcodec/mediacodec_wrapper.c |  4 >

Re: [FFmpeg-devel] [PATCH] avcodec/mediacodec: Add AV1 encoder

2023-04-27 Thread Tomas Härdin
ons 2023-04-26 klockan 14:02 + skrev Samuel Raposo Vieira Mira: > Connected FFmpeg to Mediacodec AV1 encoder > --- > configure   |   1 + > libavcodec/Makefile |   1 + > libavcodec/allcodecs.c  |   1 + > libavcodec/mediacodec_wrapper.c |  12 >

[FFmpeg-devel] [PATCH V7 2/3] lavfi/dnn: Modified DNN native backend related tools and docs.

2023-04-27 Thread Ting Fu
Will remove native backend, so change the default backend in filters, and also remove the python scripts which generate native model file. Signed-off-by: Ting Fu --- doc/filters.texi| 39 +- libavfilter/vf_derain.c | 2 +-

[FFmpeg-devel] [PATCH V7 1/3] lavfi/dnn: modify dnn interface for removing native backend

2023-04-27 Thread Ting Fu
Native backend will be removed in following commits, so change the dnn interface and modify the error message in it first. Signed-off-by: Ting Fu --- libavfilter/dnn/dnn_interface.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/libavfilter/dnn/dnn_interface.c

[FFmpeg-devel] [PATCH v3 1/2] avcodec/libjxldec: add animated decode support

2023-04-27 Thread Leo Izen
Migrate the libjxl decoder wrapper from the decode_frame method to the receive_frame method, which allows sending more than one frame from a single packet. This allows the libjxl decoder to decode JPEG XL files that are animated, and emit every frame of the animation. Now, clients that feed the

[FFmpeg-devel] [PATCH v3 2/2] avformat/jpegxl_anim_dec: add animated JPEG XL demuxer

2023-04-27 Thread Leo Izen
Animated JPEG XL files requires a separate demuxer than image2, because the timebase information is set by the demuxer. Should the timebase of an animated JPEG XL file be incompatible with the timebase set by the image2pipe demuxer (usually 1/25 unless set otherwise), rescaling will fail. Adding a

[FFmpeg-devel] [PATCH v3 0/2] JPEG XL Animation Support

2023-04-27 Thread Leo Izen
Changes from v2: - Bumped libavformat minor version - Rebased onto master Leo Izen (2): avcodec/libjxldec: add animated decode support avformat/jpegxl_anim_dec: add animated JPEG XL demuxer MAINTAINERS | 1 + libavcodec/libjxldec.c| 109 ++

Re: [FFmpeg-devel] [PATCH V6 1/3] lavfi/dnn: Mark native backend as unsupported

2023-04-27 Thread Fu, Ting
> -Original Message- > From: ffmpeg-devel On Behalf Of Guo, > Yejun > Sent: Thursday, April 27, 2023 11:24 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH V6 1/3] lavfi/dnn: Mark native backend > as unsupported > > > > >

[FFmpeg-devel] [PATCH] lavf/dv: do not set video timebase more than once

2023-04-27 Thread Anton Khirnov
Current code will call avpriv_set_pts_info() for each video frame, possibly setting a different timebase if the stream framerate changes. This violates API conventions, as the timebase is supposed to stay constant after stream creation. Change the demuxer to set a single timebase that is fine

[FFmpeg-devel] [PATCH v22 05/10] avcodec/evc_encoder: Provided support for EVC encoder

2023-04-27 Thread Dawid Kozinski
- Added EVC encoder wrapper - Changes in project configuration file and libavcodec Makefile - Added documentation for xeve wrapper Signed-off-by: Dawid Kozinski --- configure | 4 + doc/encoders.texi | 69 + doc/general_contents.texi | 11 + libavcodec/Makefile

[FFmpeg-devel] [PATCH v22 07/10] avformat/mov_muxer: Extended MOV muxer to handle EVC video content

2023-04-27 Thread Dawid Kozinski
- Changes in mov_write_video_tag function to handle EVC elementary stream - Provided structure EVCDecoderConfigurationRecord that specifies the decoder configuration information for ISO/IEC 23094-1 video content Signed-off-by: Dawid Kozinski --- libavformat/Makefile| 2 +-

[FFmpeg-devel] [PATCH v22 06/10] avcodec/evc_decoder: Provided support for EVC decoder

2023-04-27 Thread Dawid Kozinski
- Added EVC decoder wrapper - Changes in project configuration file and libavcodec Makefile - Added documentation for xevd wrapper Signed-off-by: Dawid Kozinski --- configure | 4 + doc/decoders.texi | 24 ++ doc/general_contents.texi | 10 +- libavcodec/Makefile

[FFmpeg-devel] [PATCH] lavf/dauddec: set timebase to 1/samplerate

2023-04-27 Thread Anton Khirnov
Prevents lavf from generating inexact timestamps with the default timebase of 1/9. --- libavformat/dauddec.c | 4 tests/ref/fate/d-cinema-demux | 10 +- tests/ref/fate/dcinema-encode | 26 +- 3 files changed, 22 insertions(+), 18 deletions(-)

Re: [FFmpeg-devel] [PATCH] lavf/dauddec: set timebase to 1/samplerate

2023-04-27 Thread Paul B Mahol
LGTM ___ 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".

[FFmpeg-devel] [PATCH v22 01/10] avcodec/evc: MPEG-5 EVC codec registration

2023-04-27 Thread Dawid Kozinski
Added prerequisites that must be met before providing support for the MPEG-5 EVC codec - Added new entry to codec IDs list - Added new entry to the codec descriptor list - Bumped libavcodec minor version - Added profiles for EVC codec Signed-off-by: Dawid Kozinski --- libavcodec/avcodec.h|

[FFmpeg-devel] [PATCH 02/21] fftools/ffmpeg: reduce access to OutputStream.enc_ctx

2023-04-27 Thread Anton Khirnov
It will be made private to Encoder in the future. --- fftools/ffmpeg.c | 7 +++ fftools/ffmpeg_mux.c | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 15fe839914..1ae2c5c18f 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c

[FFmpeg-devel] [PATCH 06/21] fftools/ffmpeg: drop undocumented runtime debug-setting

2023-04-27 Thread Anton Khirnov
This feature is of highly questionable usefulness and - as the comment in the code says - is not actually supported by the API. --- fftools/ffmpeg.c | 35 --- 1 file changed, 35 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index

[FFmpeg-devel] [PATCH 07/21] fftools/ffmpeg_filter: make ifilter_parameters_from_frame() static

2023-04-27 Thread Anton Khirnov
It is no longer used outside of this file. --- fftools/ffmpeg.h| 1 - fftools/ffmpeg_filter.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 116087354d..cc384b4b30 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@

[FFmpeg-devel] [PATCH 15/21] fftools/ffmpeg: set AVFrame.time_base for decoded frames

2023-04-27 Thread Anton Khirnov
Makes it easier to keep track of the timebase the frames are in. --- fftools/ffmpeg.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 5913a57d16..8829a163e0 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c

[FFmpeg-devel] [PATCH 03/21] fftools/ffmpeg: drop OutputStream.pict_type

2023-04-27 Thread Anton Khirnov
It is no longer used outside of update_video_stats(), so make it a stack variable in that function. --- fftools/ffmpeg.h | 3 --- fftools/ffmpeg_enc.c | 5 +++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index a41bc9b518..c3cb365a3b

[FFmpeg-devel] [PATCH 14/21] fftools/ffmpeg: stop using packet pts for decoded audio frame pts

2023-04-27 Thread Anton Khirnov
If input packets have timestamps, they will be propagated to output frames by the decoder, so at best this block does not do anything. There can also be an arbitrary amount of delay between packets sent to the decoder and decoded frames (e.g. due to decoder's intrinsic delay or frame threading),

Re: [FFmpeg-devel] [PATCH] avfilter: add FIR equalizer coefficients source filter

2023-04-27 Thread Paul B Mahol
Will apply soon. ___ 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".

[FFmpeg-devel] [PATCH 2/2] libavformat/webp: add WebP demuxer

2023-04-27 Thread Thilo Borgmann
From: Josef Zlomek Adds the demuxer of animated WebP files. It supports non-animated, animated, truncated, and concatenated files. Reading from a pipe (and other non-seekable inputs) is also supported. The WebP demuxer splits the input stream into packets containing one frame. It also marks the

[FFmpeg-devel] Add support for animated WebP

2023-04-27 Thread Thilo Borgmann
Hi, support for animated WebP had been proposed twice in the past [1][2]. This did stall when Lynne called for some review on the demuxer in [1]. So these are the rebased patches from [1], pinging especially for demuxer review. Retested decoding with all files given in #4907. Demuxer needs

[FFmpeg-devel] [PATCH 08/21] fftools/ffmpeg_filter: add filtergraph private data

2023-04-27 Thread Anton Khirnov
Start by moving OutputStream.filtered_frame to it, which really belongs to the filtergraph rather than the output stream. --- fftools/ffmpeg.h | 1 - fftools/ffmpeg_filter.c | 31 ++- fftools/ffmpeg_mux.c | 1 - fftools/ffmpeg_mux_init.c | 4 4

[FFmpeg-devel] [PATCH 11/21] fftools/ffmpeg_filter: add InputFilter private data

2023-04-27 Thread Anton Khirnov
Move InputFilter.frame_queue to it, which is not accessed outside of ffmpeg_filter. --- fftools/ffmpeg.h| 2 -- fftools/ffmpeg_filter.c | 33 - 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index

[FFmpeg-devel] [PATCH 10/21] fftools/ffmpeg_filter: factorize allocating InputFilter

2023-04-27 Thread Anton Khirnov
--- fftools/ffmpeg_filter.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 12ecf54998..ecabf3f886 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -203,6 +203,21 @@

[FFmpeg-devel] [PATCH 09/21] fftools/ffmpeg_filter: make graph_desc private

2023-04-27 Thread Anton Khirnov
It is not used outside of ffmpeg_filter. --- fftools/ffmpeg.h| 1 - fftools/ffmpeg_filter.c | 22 ++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 2acbccfe2c..e0e923e902 100644 --- a/fftools/ffmpeg.h +++

[FFmpeg-devel] [PATCH 12/21] fftools/ffmpeg_filter: keep track of filtergraph input timebase

2023-04-27 Thread Anton Khirnov
Will be useful in following commits. --- fftools/ffmpeg_filter.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 6b92bc074e..3c6c580093 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c

[FFmpeg-devel] [PATCH 13/21] fftools/ffmpeg_filter: use correct timebase for filter EOF timestamp

2023-04-27 Thread Anton Khirnov
It does not need to be equal to demuxer timebase. --- fftools/ffmpeg.c| 5 + fftools/ffmpeg.h| 2 +- fftools/ffmpeg_filter.c | 6 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 453d3763be..eae0093cce 100644 ---

[FFmpeg-devel] [PATCH 1/2] libavcodec/webp: add support for animated WebP decoding

2023-04-27 Thread Thilo Borgmann
From: Josef Zlomek Fixes: 4907 Adds support for decoding of animated WebP. The WebP parser now splits the input stream into packets containing one frame. The WebP decoder adds the animation related features according to the specs:

[FFmpeg-devel] [PATCH] avcodec/parser: fill avctx dimensions if unset

2023-04-27 Thread James Almer
This allows the usage of codecs in builds that have a parser but no decoders for remuxing scenarios with raw sources. Signed-off-by: James Almer --- libavcodec/parser.c | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/parser.c b/libavcodec/parser.c index 49de7e6a57..efc28b8918

[FFmpeg-devel] [PATCH 16/21] fftools/ffmpeg: rework audio-decode timestamp handling

2023-04-27 Thread Anton Khirnov
Stop using InputStream.dts for generating missing timestamps for decoded frames, because it contains pre-decoding timestamps and there may be arbitrary amount of delay between input packets and output frames (e.g. dependent on the thread count when frame threading is used). It is also in

[FFmpeg-devel] [PATCH 21/21] fftools/ffmpeg: always use the same path for setting InputStream.[next_]dts

2023-04-27 Thread Anton Khirnov
Currently those are set in different ways depending on whether the stream is decoded or not, using some values from the decoder if it is. This is wrong, because there may be arbitrary amount of delay between input packets and output frames (depending e.g. on the thread count when frame threading

[FFmpeg-devel] [PATCH 01/21] fftools/ffmpeg: deprecate -adrift_threshold

2023-04-27 Thread Anton Khirnov
This option has had no effect since -async was removed in 3d86a13b47b726e49c2d780c5f723c290e8a36b4 --- doc/ffmpeg.texi | 6 -- fftools/ffmpeg.h | 2 +- fftools/ffmpeg_opt.c | 14 -- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/doc/ffmpeg.texi

[FFmpeg-devel] [PATCH 04/21] fftools/ffmpeg: drop OutputStream.error

2023-04-27 Thread Anton Khirnov
Only the first component is used in update_video_stats(), so make it a stack variable in that function. --- fftools/ffmpeg.h | 8 fftools/ffmpeg_enc.c | 20 +--- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h

[FFmpeg-devel] [PATCH 05/21] fftools/ffmpeg: move OutputStream.packets_encoded to Encoder

2023-04-27 Thread Anton Khirnov
It is no longer used outside of ffmpeg_enc. --- fftools/ffmpeg.h | 2 -- fftools/ffmpeg_enc.c | 9 ++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index c4b77ab2c8..116087354d 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@

[FFmpeg-devel] [PATCH 19/21] fftools/ffmpeg: drop InputStream.[next_]pts

2023-04-27 Thread Anton Khirnov
They are no longer used for anything. --- fftools/ffmpeg.c | 20 +--- fftools/ffmpeg.h | 4 fftools/ffmpeg_demux.c | 1 - 3 files changed, 1 insertion(+), 24 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 3ffc37729c..83abc4e86e 100644 ---

[FFmpeg-devel] [PATCH 17/21] fftools/ffmpeg: stop using InputStream.pts for generating video timestamps

2023-04-27 Thread Anton Khirnov
This was added in 380db569287ba99d903b7629f209b9adc7fd2723 as a temporary crutch that is not needed anymore. The only case where this code can be triggered is the very first frame, for which InputStream.pts is always equal to 0. --- fftools/ffmpeg.c | 7 ++- 1 file changed, 2 insertions(+), 5

[FFmpeg-devel] [PATCH 20/21] fftools/ffmpeg: constify packets passed to decode*()

2023-04-27 Thread Anton Khirnov
They are not modified by these functions. --- fftools/ffmpeg.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 83abc4e86e..07bd40749d 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -822,7 +822,7 @@ int

[FFmpeg-devel] [PATCH 18/21] fftools/ffmpeg_filter: stop using InputStream.pts for filter EOF ts

2023-04-27 Thread Anton Khirnov
Use InputStream.last_frame_pts/duration instead, which is more accurate. --- fftools/ffmpeg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index a69aceec9f..3ffc37729c 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1374,7

[FFmpeg-devel] [PATCH] avcodec/mxfdec: Recognize AAC per SMPTE ST 381-4

2023-04-27 Thread Ammon Riley
This patch simply recognizes the AAC audio tracks during decode -- it does not add functionality to encode AAC in MXF. A sample file (st381-4-sample.mxf) has been uploaded to https://streams.videolan.org/upload/, and is also available at https://harmonicinc.box.com/v/st381-4-sample. Audio and

Re: [FFmpeg-devel] [PATCH V7 3/3] lavfi/dnn: Remove DNN native backend

2023-04-27 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > Ting Fu > Sent: Thursday, April 27, 2023 5:44 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH V7 3/3] lavfi/dnn: Remove DNN native > backend > > According to discussion in >

[FFmpeg-devel] [PATCH 2/2] avcodec/hevc_ps: use get_{ue, se}_golomb() for some PPS Range extension fields

2023-04-27 Thread James Almer
Signed-off-by: James Almer --- libavcodec/hevc_ps.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index 289b8f7d95..585b095073 100644 --- a/libavcodec/hevc_ps.c +++ b/libavcodec/hevc_ps.c @@ -1478,33 +1478,33 @@

Re: [FFmpeg-devel] [PATCH 1/2] libavcodec/webp: add support for animated WebP decoding

2023-04-27 Thread James Almer
On 4/27/2023 3:08 PM, Thilo Borgmann wrote: +static int decode_frame_common(AVCodecContext *avctx, uint8_t *data, int size, + int *got_frame, int key_frame) +//>>> f95bfa9c6d (libavcodec/webp: add support for animated WebP decoding) ??? There's several of

[FFmpeg-devel] [PATCH 3/3] avcodec/hevc_ps: Avoid signed overflow before check on QP

2023-04-27 Thread Michael Niedermayer
Fixes: signed integer overflow: -2147483648 - 5 cannot be represented in type 'int' Fixes: 58066/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5312995835379712 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by:

[FFmpeg-devel] [PATCH] avcodec/hevc_ps: use get_ue_golomb() for some PPS Screen Content Coding extension fields

2023-04-27 Thread James Almer
Also remove the _minus8 part of the name to be in line with the rest of the decoder, and fix the storage type for pps_palette_predictor_initializer, to support hbd values. Signed-off-by: James Almer --- libavcodec/hevc_ps.c | 21 ++--- libavcodec/hevc_ps.h | 6 +++--- 2 files

[FFmpeg-devel] [PATCH 1/3] tools/target_dec_fuzzer: Adjust threshold for rka

2023-04-27 Thread Michael Niedermayer
Fixes: Timeout Fixes: 57993/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RKA_fuzzer-5825782785376256 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 changed,

[FFmpeg-devel] [PATCH 2/3] avcodec/hevcdec: do not memcpy into itself

2023-04-27 Thread Michael Niedermayer
Iam not sure if this buffer setup is intended but if it occurs memcpy() cannot always be used Fixes: memcpy-param-overlap Fixes: 58062/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-4717458841010176 Found-by: continuous fuzzing process

Re: [FFmpeg-devel] [PATCH 1/2] libavcodec/webp: add support for animated WebP decoding

2023-04-27 Thread Thilo Borgmann
Am 27.04.23 um 20:29 schrieb James Almer: On 4/27/2023 3:08 PM, Thilo Borgmann wrote: +static int decode_frame_common(AVCodecContext *avctx, uint8_t *data, int size, +   int *got_frame, int key_frame) +//>>> f95bfa9c6d (libavcodec/webp: add support for animated

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/hevc_ps: Avoid signed overflow before check on QP

2023-04-27 Thread James Almer
On 4/27/2023 3:38 PM, Michael Niedermayer wrote: Fixes: signed integer overflow: -2147483648 - 5 cannot be represented in type 'int' Fixes: 58066/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5312995835379712 Found-by: continuous fuzzing process

[FFmpeg-devel] [PATCH] avcodec/jpeg2000dec: Ensure calculation of buf_size cannot overflow.

2023-04-27 Thread etemesicaleb
From: caleb --- libavcodec/jpeg2000htdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/jpeg2000htdec.c b/libavcodec/jpeg2000htdec.c index 51cd96e0f1..d77293ddd8 100644 --- a/libavcodec/jpeg2000htdec.c +++ b/libavcodec/jpeg2000htdec.c @@ -595,7 +595,7 @@ static