[FFmpeg-devel] Add support for ICMV audio in wav

2022-08-23 Thread Paul B Mahol
Hi, patch attached. From 7d421f86b3f1f8fcb8effba04dc37d724caa2455 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 23 Aug 2022 10:11:55 +0200 Subject: [PATCH] avformat: add support for ICMV files Signed-off-by: Paul B Mahol --- libavformat/riff.c | 1 + 1 file changed, 1 insertion(+) di

[FFmpeg-devel] [PATCH v3 1/3] lavc/decode: Warp get_hw_config function

2022-08-23 Thread Fei Wang
From: Linjie Fu Wrap the procedure of getting the hardware config from a pixel format into a function. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/decode.c | 31 +++ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/libavcodec/deco

[FFmpeg-devel] [PATCH v3 2/3] lavc/decode: Add internal surface re-allocate method for hwaccel

2022-08-23 Thread Fei Wang
From: Linjie Fu Add HWACCEL_CAP_INTERNAL_ALLOC flag to indicate hwaccels are able to re-allocate surface internally through ff_decode_get_hw_frames_ctx. So that hwaccels don't need to reinitialize all hw related configs when decode resolution change, just need to re-allocate new surface by using

[FFmpeg-devel] [PATCH v3 3/3] lavc/vaapi_vp9: add surface internal re-allocation capability

2022-08-23 Thread Fei Wang
From: Linjie Fu Surfaces need to bound to a vaContext when context is created before VAAPI 1.0.0, it need to reset context if surface change. So re-allocation capability only available after VAAPI 1.0.0. Detail changes in VAAPI: https://github.com/intel/libva/commit/492b692005ccd0d8da190209d5b3a

[FFmpeg-devel] [PATCH v3] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

2022-08-23 Thread bin . wang-at-intel . com
From: bwang30 This commit enabled assembly code with intel AVX512 VNNI and added unit test for sobel filter sobel_c: 4537 sobel_avx512icl 2470 Signed-off-by: bwang30 --- libavfilter/convolution.h | 2 + libavfilter/vf_convolution.c | 23 libavfilter/x86/vf_convol

[FFmpeg-devel] [PATCH] avcodec/gif: fix duration of last packet/frame

2022-08-23 Thread Paul B Mahol
Hi, patch attached. From f126c6ef9e5fa8b51272508af6603f05c26a3f26 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 23 Aug 2022 11:51:24 +0200 Subject: [PATCH] avcodec/gif: fix duration of last packet/frame Fixes #6294 Signed-off-by: Paul B Mahol --- libavcodec/gif.c | 2 ++ libavforma

Re: [FFmpeg-devel] [PATCH] avcodec/libsvtav1: properly initialize the flush EbBufferHeaderType struct

2022-08-23 Thread James Almer
On 8/22/2022 12:06 AM, James Almer wrote: Should fix ticket #9834 Signed-off-by: James Almer --- libavcodec/libsvtav1.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c index 234c24ca7a..4c403a98d4 100644 --- a/libavco

Re: [FFmpeg-devel] [PATCH] avcodec/gif: fix duration of last packet/frame

2022-08-23 Thread Andreas Rheinhardt
Paul B Mahol: > Hi, > > patch attached. > > return ret; > } > > +pkt->duration = av_rescale_q(pict->duration, (AVRational){ 1, 100 }, > + avctx->time_base); > pkt->size = outbuf_ptr - pkt->data; > if (s->image || !avctx->frame_nu

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg_opt: try to propagate the requested output channel layout

2022-08-23 Thread James Almer
On 8/21/2022 5:42 PM, James Almer wrote: Don't silently replace it with the default layout for the amount of channels from the requested layout. Should fix ticket #9869 Signed-off-by: James Almer --- fftools/ffmpeg_opt.c | 38 +- 1 file changed, 37 insert

Re: [FFmpeg-devel] [PATCH] avcodec/gif: fix duration of last packet/frame

2022-08-23 Thread Paul B Mahol
On Tue, Aug 23, 2022 at 2:18 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Paul B Mahol: > > Hi, > > > > patch attached. > > > > return ret; > > } > > > > +pkt->duration = av_rescale_q(pict->duration, (AVRational){ 1, 100 }, > > +

Re: [FFmpeg-devel] [PATCH 02/10] avcodec/wmalosslessdec: Remove unnecessary emms_c()

2022-08-23 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Possible since 6feea076e98512d78c8d735509ab6b5e9a71ca1c. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/wmalosslessdec.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c > index 614b6135f5..6ba9f04d

Re: [FFmpeg-devel] [PATCH] avcodec/gif: fix duration of last packet/frame

2022-08-23 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Paul B Mahol: >> Hi, >> >> patch attached. >> >> return ret; >> } >> >> +pkt->duration = av_rescale_q(pict->duration, (AVRational){ 1, 100 }, >> + avctx->time_base); >> pkt->size = outbuf_ptr - pkt->data; >> i

Re: [FFmpeg-devel] [PATCH] ipfsgateway: Remove default gateway

2022-08-23 Thread Ronald S. Bultje
Hi, On Mon, Aug 22, 2022 at 5:52 AM Nicolas George wrote: > Tomas Härdin (12022-08-22): > > I'd actually argue that in that case we should link a library that > > implements IPFS, not split developer effort by trying to implement it > > ourselves. > > Is FFmpeg meant to be just a convenient set

Re: [FFmpeg-devel] [PATCH] ipfsgateway: Remove default gateway

2022-08-23 Thread Nicolas George
Ronald S. Bultje (12022-08-23): > I think it usually comes down to a developer wanting to, you know, spend > time on it. Sure, it can be that. But not only. I have seen people, including Tomas himself, oppose code in favor of using a library. Regards, -- Nicolas George signature.asc Descrip

Re: [FFmpeg-devel] [PATCH] avcodec/gif: fix duration of last packet/frame

2022-08-23 Thread Andreas Rheinhardt
Paul B Mahol: > diff --git a/libavformat/gif.c b/libavformat/gif.c > index b52ff4dd39..afb5767541 100644 > --- a/libavformat/gif.c > +++ b/libavformat/gif.c > @@ -36,7 +36,6 @@ typedef struct GIFContext { > int duration; > int64_t last_pos; > int have_end; > -AVPacket *prev_pkt;

[FFmpeg-devel] [PATCH] avcodec/gif: Remove unnecessary headers

2022-08-23 Thread Andreas Rheinhardt
The gif encoder uses the bytestream API, not the PutBit-API. Signed-off-by: Andreas Rheinhardt --- Will apply this tonight unless there are objections. libavcodec/gif.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/gif.c b/libavcodec/gif.c index 8e84b79b8c..c120b4b8fd 100644

Re: [FFmpeg-devel] [PATCH] swscale/x86/rgb2_rgb: Empty MMX state in ff_shuffle_bytes_2103_mmxext

2022-08-23 Thread Michael Niedermayer
On Mon, Aug 22, 2022 at 11:59:17PM +0200, Andreas Rheinhardt wrote: > Andreas Rheinhardt: > > Fixes FATE-failures with the the filter-2xbr filter-3xbr filter-4xbr > > filter-ep2x filter-ep3x filter-hq2x filter-hq3x filter-hq4x > > filter-paletteuse-bayer filter-paletteuse-bayer0 > > filter-paletteu

Re: [FFmpeg-devel] [PATCH] swscale/x86/rgb2_rgb: Empty MMX state in ff_shuffle_bytes_2103_mmxext

2022-08-23 Thread Andreas Rheinhardt
Michael Niedermayer: > On Mon, Aug 22, 2022 at 11:59:17PM +0200, Andreas Rheinhardt wrote: >> Andreas Rheinhardt: >>> Fixes FATE-failures with the the filter-2xbr filter-3xbr filter-4xbr >>> filter-ep2x filter-ep3x filter-hq2x filter-hq3x filter-hq4x >>> filter-paletteuse-bayer filter-paletteuse-ba

Re: [FFmpeg-devel] [PATCH] swscale/x86/rgb2_rgb: Empty MMX state in ff_shuffle_bytes_2103_mmxext

2022-08-23 Thread Michael Niedermayer
On Tue, Aug 23, 2022 at 07:28:19PM +0200, Andreas Rheinhardt wrote: > Michael Niedermayer: > > On Mon, Aug 22, 2022 at 11:59:17PM +0200, Andreas Rheinhardt wrote: > >> Andreas Rheinhardt: > >>> Fixes FATE-failures with the the filter-2xbr filter-3xbr filter-4xbr > >>> filter-ep2x filter-ep3x filter

Re: [FFmpeg-devel] [PATCH] avcodec/pthread_frame: update the main avctx from the current, ThreadContext

2022-08-23 Thread Michael Niedermayer
On Fri, Aug 19, 2022 at 10:07:54AM +0200, Steve Lhomme wrote: > Hi, > > On 2022-08-02 16:19, Anton Khirnov wrote: > > Why are you not resubmitting your original patch that stops copying > > hwaccel_priv_data to the user-facing context? > > > > It seemed more correct to me, since the user-facing c

Re: [FFmpeg-devel] [PATCH v2] doc/git-howto.texi: Document commit signing

2022-08-23 Thread Michael Niedermayer
On Wed, Aug 10, 2022 at 12:19:02AM +0200, Michael Niedermayer wrote: > On Tue, Aug 09, 2022 at 04:38:56PM -0300, James Almer wrote: > > On 8/9/2022 4:34 PM, Michael Niedermayer wrote: > > > From: Michael Niedermayer [...] > > > > > > +github consider mismatches a reason to declare such commits u

Re: [FFmpeg-devel] [PATCH] tools/target_dec_fuzzer: Adjust threshold for NUV

2022-08-23 Thread Michael Niedermayer
On Sat, Aug 13, 2022 at 12:40:27AM +0200, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 49286/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_NUV_fuzzer-5856252655173632 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-

Re: [FFmpeg-devel] [PATCH 1/5] tools/target_dec_fuzzer: Adjust threshold for VMDVIDEO

2022-08-23 Thread Michael Niedermayer
On Sat, Aug 13, 2022 at 11:50:31PM +0200, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 49350/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VMDVIDEO_fuzzer-4554761801695232 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Si

Re: [FFmpeg-devel] [PATCH v2] doc/git-howto.texi: Document commit signing

2022-08-23 Thread James Almer
On 8/23/2022 3:00 PM, Michael Niedermayer wrote: On Wed, Aug 10, 2022 at 12:19:02AM +0200, Michael Niedermayer wrote: On Tue, Aug 09, 2022 at 04:38:56PM -0300, James Almer wrote: On 8/9/2022 4:34 PM, Michael Niedermayer wrote: From: Michael Niedermayer [...] +github consider mismatches

Re: [FFmpeg-devel] [PATCH] swscale/x86/rgb2_rgb: Empty MMX state in ff_shuffle_bytes_2103_mmxext

2022-08-23 Thread Andreas Rheinhardt
Michael Niedermayer: > On Tue, Aug 23, 2022 at 07:28:19PM +0200, Andreas Rheinhardt wrote: >> Michael Niedermayer: >>> On Mon, Aug 22, 2022 at 11:59:17PM +0200, Andreas Rheinhardt wrote: Andreas Rheinhardt: > Fixes FATE-failures with the the filter-2xbr filter-3xbr filter-4xbr > filter

Re: [FFmpeg-devel] [PATCH 1/4] avcodec/mpegaudiodec_template: use unsigned shift in handle_crc()

2022-08-23 Thread Michael Niedermayer
On Mon, Aug 15, 2022 at 07:59:24PM +0200, Michael Niedermayer wrote: > Fixes: left shift of 192 by 24 places cannot be represented in type 'int' > Fixes: > 49577/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MP1FLOAT_fuzzer-5205996678545408 > > Found-by: continuous fuzzing process > https://

Re: [FFmpeg-devel] [PATCH] swscale/x86/rgb2_rgb: Empty MMX state in ff_shuffle_bytes_2103_mmxext

2022-08-23 Thread Michael Niedermayer
On Tue, Aug 23, 2022 at 08:09:09PM +0200, Andreas Rheinhardt wrote: > Michael Niedermayer: > > On Tue, Aug 23, 2022 at 07:28:19PM +0200, Andreas Rheinhardt wrote: > >> Michael Niedermayer: > >>> On Mon, Aug 22, 2022 at 11:59:17PM +0200, Andreas Rheinhardt wrote: > Andreas Rheinhardt: > > F

Re: [FFmpeg-devel] [PATCH] swscale/x86/rgb2_rgb: Empty MMX state in ff_shuffle_bytes_2103_mmxext

2022-08-23 Thread Andreas Rheinhardt
Michael Niedermayer: > On Tue, Aug 23, 2022 at 08:09:09PM +0200, Andreas Rheinhardt wrote: >> Michael Niedermayer: >>> On Tue, Aug 23, 2022 at 07:28:19PM +0200, Andreas Rheinhardt wrote: Michael Niedermayer: > On Mon, Aug 22, 2022 at 11:59:17PM +0200, Andreas Rheinhardt wrote: >> Andre

[FFmpeg-devel] Bitrate estimation API in libavformat muxers

2022-08-23 Thread Kevin Wang
Is there an API to get the bitrate from libavformat muxers that support it? Many streaming protocols now offer some sort of bandwidth estimation, wondering if there is a common way to get the outbound link capacity through libavformat so it can be passed to the encoder easily. Kevin __

[FFmpeg-devel] [PATCH v3 0/3] lavf/dashdec: Multithreaded DASH initialization

2022-08-23 Thread Lukas Fellechner
Initializing DASH streams is currently slow, because each individual stream is opened and probed sequentially. With DASH streams often having somewhere between 10-20 streams, this can easily take up to half a minute on slow connections. This patch adds an "init-threads" option, specifying the max

[FFmpeg-devel] [PATCH v3 1/3] lavf/dashdec: Prepare DASH decoder for multithreading

2022-08-23 Thread Lukas Fellechner
For adding multithreading to the DASH decoder initialization, the open_demux_for_component() method must be split up into two parts: begin_open_demux_for_component(): Opens the stream and does probing and format detection. This can be run in parallel. end_open_demux_for_component(): Creates the A

[FFmpeg-devel] [PATCH v3 2/3] lavf/dashdec: Multithreaded DASH initialization

2022-08-23 Thread Lukas Fellechner
This patch adds an "init-threads" option, specifying the max number of threads to use. Multiple worker threads are spun up to massively bring down init times. --- libavformat/dashdec.c | 351 +- 1 file changed, 350 insertions(+), 1 deletion(-) diff --git a/

[FFmpeg-devel] [PATCH v3 3/3] lavf/dashdec: Fix indentation after multithreading

2022-08-23 Thread Lukas Fellechner
--- libavformat/dashdec.c | 74 +-- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 20f2557ea3..f653b9850e 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -2412,54 +2412,54

Re: [FFmpeg-devel] [PATCH v2] lavf/dashdec: Multithreaded DASH initialization

2022-08-23 Thread Lukas Fellechner
Gesendet: Dienstag, 23. August 2022 um 05:19 Uhr Von: "Steven Liu" An: "FFmpeg development discussions and patches" Betreff: Re: [FFmpeg-devel] [PATCH v2] lavf/dashdec: Multithreaded DASH initialization Lukas Fellechner 于2022年8月22日周一 03:27写道: > > I look at the new functions likes begin_open_dem

[FFmpeg-devel] FFmpeg 5.1.1

2022-08-23 Thread Michael Niedermayer
Hi As there are quite a bunch of bugfixes accumulated I intend to make 5.1.1 soon (in less than a week) thx -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I have never wished to cater to the crowd; for what I know they do not approve, and what they approve I do not k

[FFmpeg-devel] [PATCH] avformat/mov: Check count sums in build_open_gop_key_points()

2022-08-23 Thread Michael Niedermayer
Fixes: ffmpeg.md Fixes: Out of array access Fixes: CVE-2022-2566 Found-by: Andy Nguyen Found-by: 3pvd <3...@google.com> Reviewed-by: Andy Nguyen Signed-off-by: Michael Niedermayer --- libavformat/mov.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libavforma

Re: [FFmpeg-devel] [PATCH] Allow exporting of RGB and BGR images to CUDA.

2022-08-23 Thread dpeeters
> -Original Message- > From: ffmpeg-devel On Behalf Of > dpeeters@MRU.MEDICAL.CANON > Sent: Thursday, July 28, 2022 11:24 AM > To: ffmpeg-devel@ffmpeg.org > Subject: [EXTERNAL] Re: [FFmpeg-devel] [PATCH] Allow exporting of RGB > and BGR images to CUDA. > > > -Original Message- > >

[FFmpeg-devel] [PATCH] Fix wavpack decoding regression

2022-08-23 Thread Paul B Mahol
Patch attached. From 217f31c5eb9355bb8fc61a9f46595ee06628c8b9 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 23 Aug 2022 22:39:41 +0200 Subject: [PATCH] avcodec/wavpack: unbreak regression in decoding Signed-off-by: Paul B Mahol --- libavcodec/wavpack.c | 2 +- 1 file changed, 1 inserti

Re: [FFmpeg-devel] [PATCH] Fix wavpack decoding regression

2022-08-23 Thread Andreas Rheinhardt
Paul B Mahol: > Patch attached. > From 217f31c5eb9355bb8fc61a9f46595ee06628c8b9 Mon Sep 17 00:00:00 2001 > From: Paul B Mahol > Date: Tue, 23 Aug 2022 22:39:41 +0200 > Subject: [PATCH] avcodec/wavpack: unbreak regression in decoding > You should mention the commit that introduced the regression.

Re: [FFmpeg-devel] [PATCH] Fix wavpack decoding regression

2022-08-23 Thread Paul B Mahol
Better fix attached. From 8d0a8dee32c2d51c6bf1bcd58e5e96ba92e6341b Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 23 Aug 2022 22:39:41 +0200 Subject: [PATCH] avcodec/wavpack: fix regression in decoding Regression introduced in c6831e2a70f734c71f483d69d46d0635963530. Fix it by using bitrea

Re: [FFmpeg-devel] [PATCH] avcodec/libvpx: fix assembling vp9 packets with alpha channel

2022-08-23 Thread Vignesh Venkatasubramanian
On Sun, Aug 21, 2022 at 10:21 AM James Almer wrote: > > There's no warranty that vpx_codec_encode() will generate a list with the same > amount of packets for both the yuv planes encoder and the alpha plane encoder, > so queueing packets based on what the main encoder returns will fail when the >

Re: [FFmpeg-devel] [PATCH] avfilter/af_alimiter: fix misbehavior when nb_channels != 2

2022-08-23 Thread David Flater
This is a friendly reminder. Cc: Paul B Mahol On 2022-08-14 21:53, David Flater wrote: > Some code in alimiter assumes that there are 2 channels, resulting in > clipping if the loudest channel is 3 or above and an out-of-bounds read if > the input is monophonic. Fix that in 2 places. > > Signe

[FFmpeg-devel] [PATCH 1/2] avcodec/libvpxenc: use av_fast_realloc() to resize the stats buffer

2022-08-23 Thread James Almer
Signed-off-by: James Almer --- libavcodec/libvpxenc.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index e08df5fb96..bbbe56c0dc 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -80,6 +80,7 @

[FFmpeg-devel] [PATCH 2/2] avcodec/libaomenc: use av_fast_realloc() to resize the stats buffer

2022-08-23 Thread James Almer
Signed-off-by: James Almer --- libavcodec/libaomenc.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c index 1fd69d59a7..485f554165 100644 --- a/libavcodec/libaomenc.c +++ b/libavcodec/libaomenc.c @@ -70,6 +70,7 @@

Re: [FFmpeg-devel] [PATCH v2] avfilter/vf_showinfo: add wallclock option

2022-08-23 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Michael Riedl > Sent: Wednesday, August 17, 2022 11:02 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v2] avfilter/vf_showinfo: add > wallclock option > > On 17.08.2022 10:43, Nicolas George wrote: > > Mich

[FFmpeg-devel] [PATCH 01/11] avcodec/tests/avcodec: Mark frame-thrd encoder incompatible with delay

2022-08-23 Thread Andreas Rheinhardt
The API for frame-threaded encoders only works for one-in-one-out encoders. Signed-off-by: Andreas Rheinhardt --- libavcodec/tests/avcodec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/tests/avcodec.c b/libavcodec/tests/avcodec.c index 08b5fbede1..3288a85f64 100644 --- a/li

[FFmpeg-devel] [PATCH 02/11] avcodec/encode: Apply intra_only_flag for receive_packet-API, too

2022-08-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/encode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/encode.c b/libavcodec/encode.c index bd66f138a3..9f413095e4 100644 --- a/libavcodec/encode.c +++ b/libavcodec/encode.c @@ -240,7 +240,6 @@ static int encode_s

[FFmpeg-devel] [PATCH 03/11] avcodec/aptx: Move AudioFrameQueue to aptxenc.c

2022-08-23 Thread Andreas Rheinhardt
It is only used by the encoder. Signed-off-by: Andreas Rheinhardt --- libavcodec/aptx.c| 1 - libavcodec/aptx.h| 2 -- libavcodec/aptxenc.c | 32 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/libavcodec/aptx.c b/libavcodec/aptx.c inde

[FFmpeg-devel] [PATCH 04/11] avcodec/encode: Simplify check for frame-threaded encoder

2022-08-23 Thread Andreas Rheinhardt
AVCodecInternal.frame_thread_encoder is only set iff active_thread_type is FF_THREAD_FRAME. Signed-off-by: Andreas Rheinhardt --- libavcodec/encode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavcodec/encode.c b/libavcodec/encode.c index 9f413095e4..01b59bbf70 10

[FFmpeg-devel] [PATCH 05/11] avcodec/frame_thread_encoder: Forward got_packet directly

2022-08-23 Thread Andreas Rheinhardt
Instead of indicating whether we got a packet by setting pkt->data and pkt->size to zero. Signed-off-by: Andreas Rheinhardt --- libavcodec/frame_thread_encoder.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libavcodec/frame_thread_encoder.c b/libavcodec/frame_thre

[FFmpeg-devel] [PATCH 06/11] avcodec/encode, frame_thread_encoder: Unify calling encode callback

2022-08-23 Thread Andreas Rheinhardt
The encode-callback (the callback used by the FF_CODEC_CB_TYPE_ENCODE encoders) is currently called in two places: encode_simple_internal() and by the worker threads of frame-threaded encoders. After the call, some packet properties are set based upon the corresponding AVFrame properties and the p

[FFmpeg-devel] [PATCH 08/11] avcodec/(dca|tta|pcm-bluray|pcm-dvd|wavpack)enc: Set pts+dur generically

2022-08-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/dcaenc.c| 2 -- libavcodec/pcm-blurayenc.c | 2 -- libavcodec/pcm-dvdenc.c| 2 -- libavcodec/ttaenc.c| 2 -- libavcodec/wavpackenc.c| 2 -- 5 files changed, 10 deletions(-) diff --git a/libavcodec/dcaenc.c b/libavcodec/dcae

[FFmpeg-devel] [PATCH 10/11] avcodec/encode: Fix outdated comment

2022-08-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/encode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/encode.h b/libavcodec/encode.h index 10c36435ad..e5d6b754b1 100644 --- a/libavcodec/encode.h +++ b/libavcodec/encode.h @@ -57,7 +57,7 @@ int ff_encode_alloc_fra

[FFmpeg-devel] [PATCH 09/11] avcodec: Make ff_alloc_packet() based encoders accept user buffers

2022-08-23 Thread Andreas Rheinhardt
Up until now, these encoders received non-refcounted packets (whose data was owned by the corresponding AVCodecContext) from ff_alloc_packet(); these packets were made refcounted lateron by av_packet_make_refcounted() generically. This commit makes these encoders accept user-supplied buffers by rep

[FFmpeg-devel] [PATCH 11/11] avcodec/internal: Fix outdated comment

2022-08-23 Thread Andreas Rheinhardt
The legacy API is long gone. Signed-off-by: Andreas Rheinhardt --- libavcodec/internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 52e7f111c1..61d395e8c9 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h

[FFmpeg-devel] [PATCH 07/11] avcodec/encode: Remove redundant check

2022-08-23 Thread Andreas Rheinhardt
frame is always set at this point for no-delay encoders. Signed-off-by: Andreas Rheinhardt --- libavcodec/encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/encode.c b/libavcodec/encode.c index f7b13c8ba1..f66e2f9ba8 100644 --- a/libavcodec/encode.c +++ b/lib

Re: [FFmpeg-devel] [PATCH v2] avfilter/vf_showinfo: add wallclock option

2022-08-23 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Nicolas George > Sent: Wednesday, August 17, 2022 11:28 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH v2] avfilter/vf_showinfo: add > wallclock option > > Andreas Rhei

Re: [FFmpeg-devel] [PATCH] avformat/wavdec: fix the ID3 metadata obtained in WAV format's missing

2022-08-23 Thread Steven Liu
Steven Liu 于2022年8月23日周二 09:59写道: > > Wujian(Chin) 于2022年8月22日周一 22:00写道: > > > > Fixes ticket #9848. > > > > Signed-off-by: wujian_nanjing > > --- > > libavformat/wavdec.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c

Re: [FFmpeg-devel] [PATCH v3] libavcodec/cbs_av1: Add size check before parse obu

2022-08-23 Thread Chen, Wenbin
> cbs_av1_write_unit() check pbc size after parsing obu frame, and return > AVERROR(ENOSPC) if pbc is small. pbc will be reallocated and this obu > frame will be parsed again, but this may cause error because > CodedBitstreamAV1Context has already been updated, for example > ref_order_hint is updat