[FFmpeg-devel] [PATCH] ffbuild/libversion.sh: Add shebang

2020-11-23 Thread Yuta Sekiguchi
From: aYutaSekiguchi Signed-off-by: aYutaSekiguchi --- ffbuild/libversion.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffbuild/libversion.sh b/ffbuild/libversion.sh index 990ce9f640..30046b1d25 100755 --- a/ffbuild/libversion.sh +++ b/ffbuild/libversion.sh @@ -1,3 +1,5 @@ +#!/bin/sh

[FFmpeg-devel] [PATCH] avformat/rtsp: prefer to use MAX_URL_SIZE for url and command buffer

2020-11-23 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/rtsp.c| 22 +++--- libavformat/rtsp.h| 5 +++-- libavformat/rtspdec.c | 20 ++-- libavformat/rtspenc.c | 4 ++-- 4 files changed, 26 insertions(+), 25 deletions(-) diff --git a/libavformat/rtsp

[FFmpeg-devel] [PATCH] av_filter/vf_xfade: ensure metadata is copied to transition frames

2020-11-23 Thread Musee Ullah
I was having an issue where, using a filter chain of xfade -> ass, the colors on the subtitles were incorrect only on the frames where xfade was being used. This resolves that issue for me. Signed-off-by: Musee Ullah --- libavfilter/vf_xfade.c | 1 + 1 file changed, 1 insertion(+) diff --git a/

[FFmpeg-devel] New Ticket #9006

2020-11-23 Thread Deep Thought
I have opened a ticket explaining a problem with the code for merge_pmt_versions. Attached is also a patch which fixes this problem. The main idea is the following: for the INITIAL pmt, the old code finds matching streams by 1) checking the stream_identifier. If the current stream has one, and i

[FFmpeg-devel] [PATCH 3/3] avformat/wavdec: Consider AV_INPUT_BUFFER_PADDING_SIZE in set_spdif()

2020-11-23 Thread Michael Niedermayer
The buffer is read by using the bit reader Fixes: out of array read Fixes: 27539/clusterfuzz-testcase-minimized-ffmpeg_dem_WAV_fuzzer-5650565572591616 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- liba

[FFmpeg-devel] [PATCH 2/3] avformat/rmdec: Check remaining space in debug av_log() loop

2020-11-23 Thread Michael Niedermayer
Fixes: Timeout (long -> 2 ms) Fixes: 26709/clusterfuzz-testcase-minimized-ffmpeg_dem_IVR_fuzzer-5665833403285504 Fixes: 27522/clusterfuzz-testcase-minimized-ffmpeg_dem_IVR_fuzzer-6321071221112832 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg

[FFmpeg-devel] [PATCH 1/3] avformat/flvdec: Treat high ts byte as unsigned

2020-11-23 Thread Michael Niedermayer
Fixes: left shift of 255 by 24 places cannot be represented in type 'int' Fixes: 27516/clusterfuzz-testcase-minimized-ffmpeg_dem_KUX_fuzzer-5152854660349952 Signed-off-by: Michael Niedermayer --- libavformat/flvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavforma

Re: [FFmpeg-devel] [PATCH v2 000/162] VLC, esp. init_vlc patches

2020-11-23 Thread Andreas Rheinhardt
Andreas Rheinhardt: > This is the second version of my init_vlc patchset [1]. Given the > feedback I received for the last version I stressed thread-safety of > init functions of decoders. As a consequence, the amount of decoders > with FF_CODEC_CAP_INIT_THREADSAFE increased by 25 (some of them wer

Re: [FFmpeg-devel] [PATCH v1] avcodec/libvpxenc: add a way to set VP9E_SET_SVC_REF_FRAME_CONFIG.

2020-11-23 Thread Wonkap Jang
Hi James, On Wed, Nov 18, 2020 at 1:13 PM James Zern wrote: > Hi, > > On Mon, Nov 16, 2020 at 2:36 PM Wonkap Jang > wrote: > > > > In order to fine-control referencing schemes in VP9 encoding, there > > is a need to use VP9E_SET_SVC_REF_FRAME_CONFIG method. This commit > > provides a way to use

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/mlp: Make initializing CRCs thread-safe

2020-11-23 Thread Jai Luthra
LGTM On Tue, Nov 24, 2020, at 1:29 AM, Andreas Rheinhardt wrote: > Andreas Rheinhardt: > > Signed-off-by: Andreas Rheinhardt > > --- > > libavcodec/mlp.c | 17 ++--- > > 1 file changed, 10 insertions(+), 7 deletions(-) > > > > diff --git a/libavcodec/mlp.c b/libavcodec/mlp.c > > ind

[FFmpeg-devel] [PATCH] Support HDR10+ metadata for HEVC.

2020-11-23 Thread Mohammad Izadi
From: Mohammad Izadi HDR10+ is dynamic metadata (A/341 Amendment - SMPTE2094-40) that needs to be decoded from ITU-T T.35 in HEVC bitstream. The HDR10+ is transferred to side data packet to be used or passed through. --- The fate test file can be found here: https://drive.google.com/file/d/1vc

Re: [FFmpeg-devel] [PATCH] Support HDR10+ metadata for HEVC.

2020-11-23 Thread Mohammad Izadi
Thanks, Mohammad On Fri, Nov 20, 2020 at 5:44 AM Anton Khirnov wrote: > Quoting Mohammad Izadi (2020-11-20 04:57:11) > > From: Mohammad Izadi > > > > HDR10+ is dynamic metadata (A/341 Amendment - SMPTE2094-40) that needs > to be decoded from ITU-T T.35 in HEVC bitstream. The HDR10+ is transfer

[FFmpeg-devel] [PATCH 164/191] avcodec/atrac3: Make decoders init-threadsafe

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/atrac3.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c index 48f0f20a0a..e80c39d492 100644 --- a/libavcodec/atrac3.c +++ b/libavcodec/atrac3.c @@ -39,6 +39,8 @@ #includ

Re: [FFmpeg-devel] [PATCH] avcodec/dxva2_av1: use correct grain parameters with update_grain = 0

2020-11-23 Thread James Almer
On 11/23/2020 8:38 AM, Hendrik Leppkes wrote: When update_grain is zero, the parameters should be taken from a reference frame instead. --- libavcodec/dxva2_av1.c | 59 +- 1 file changed, 30 insertions(+), 29 deletions(-) LGTM _

Re: [FFmpeg-devel] [PATCH 0/6] Add support for utilizing av1c as extradata

2020-11-23 Thread James Almer
On 11/23/2020 4:10 PM, Jan Ekström wrote: Until now an API user with a non-libavformat MP4 or Matroska demuxer would have had to manually filter the extradata to skip the first four bytes when passing data to libavcodec, so that only the OBUs would remain. Now the AV1CodecConfigurationRecord stru

Re: [FFmpeg-devel] [PATCH v2 1/3] libavutil: introduce AVFilmGrainParams side data

2020-11-23 Thread Lynne
Nov 23, 2020, 15:06 by jamr...@gmail.com: > On 11/23/2020 9:08 AM, Lynne wrote: > > >> From e11df30e25f1b27a4ec3efb7dc894b8cf59113d2 Mon Sep 17 00:00:00 2001 >> From: Lynne >> Date: Thu, 12 Nov 2020 12:44:30 +0100 >> Subject: [PATCH v3 1/4] libavutil: introduce AVFilmGrainParams side data >> >> T

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/mlp: Make initializing CRCs thread-safe

2020-11-23 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/mlp.c | 17 ++--- > 1 file changed, 10 insertions(+), 7 deletions(-) > > diff --git a/libavcodec/mlp.c b/libavcodec/mlp.c > index ddbab60c4e..74363c3b95 100644 > --- a/libavcodec/mlp.c > +++ b/libavcodec/mlp.c

[FFmpeg-devel] [PATCH 163/191] avcodec/atrac: Make generating tables thread-safe

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/atrac.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/libavcodec/atrac.c b/libavcodec/atrac.c index 12e8997dbc..bf9878be45 100644 --- a/libavcodec/atrac.c +++ b/libavcodec/atrac.c @@ -30,6 +30,8 @

[FFmpeg-devel] [PATCH 191/191] avcodec/wmadec: Apply VLC offset during init

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/wmadec.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 2b9499eba7..9c79556bb5 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -112,7 +112,7 @@ static av_cold

[FFmpeg-devel] [PATCH 190/191] avcodec/wmadec: Reduce the size of tables used to initialize VLC

2020-11-23 Thread Andreas Rheinhardt
By switching from ff_init_vlc_sparse() to ff_init_vlc_from_lengths() one can replace a table of codes of type uint16_t by a table of symbols of type uint8_t, saving space. Signed-off-by: Andreas Rheinhardt --- libavcodec/wma.h | 3 +-- libavcodec/wmadata.h | 20 libavco

[FFmpeg-devel] [PATCH 189/191] avcodec/ivi: Make initializing VLCs thread-safe

2020-11-23 Thread Andreas Rheinhardt
This automatically makes indeo4/5 init-threadsafe. Signed-off-by: Andreas Rheinhardt --- libavcodec/indeo4.c | 1 + libavcodec/indeo5.c | 2 +- libavcodec/ivi.c| 13 - 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/libavcodec/indeo4.c b/libavcodec/indeo4.c inde

[FFmpeg-devel] [PATCH 188/191] avcodec/dsddec: Inline constant

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/dsddec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/dsddec.c b/libavcodec/dsddec.c index 375e49341f..9814c9eb82 100644 --- a/libavcodec/dsddec.c +++ b/libavcodec/dsddec.c @@ -27,11 +27,11 @@ */ #include

[FFmpeg-devel] [PATCH 187/191] avcodec/dsd: Make initializing DSD tables thread-safe

2020-11-23 Thread Andreas Rheinhardt
This automatically makes the DSD formats as well as DST and WavPack init-threadsafe. Signed-off-by: Andreas Rheinhardt --- libavcodec/dsd.c | 8 +++- libavcodec/dsddec.c | 1 + libavcodec/dstdec.c | 1 + libavcodec/wavpack.c | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) di

[FFmpeg-devel] [PATCH 186/191] avcodec/wavpack: Fix leak on init failure

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/wavpack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index 58122c948c..e02a56aa35 100644 --- a/libavcodec/wavpack.c +++ b/libavcodec/wavpack.c @@ -1712,5 +1712,5 @@ AVCodec ff_wav

[FFmpeg-devel] [PATCH 185/191] avcodec/asvdec: Reindentation

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/asvdec.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/libavcodec/asvdec.c b/libavcodec/asvdec.c index d40535bed4..a72e11b848 100644 --- a/libavcodec/asvdec.c +++ b/libavcodec/asvdec.c @@ -48,2

[FFmpeg-devel] [PATCH 184/191] avcodec/asvdec: Make decoders init-threadsafe

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/asvdec.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/libavcodec/asvdec.c b/libavcodec/asvdec.c index 6b6d7b3fa7..d40535bed4 100644 --- a/libavcodec/asvdec.c +++ b/libavcodec/asvdec.c @@ -25,6 +25,7 @@ #inc

[FFmpeg-devel] [PATCH 183/191] avcodec/h261dec: Reindentation

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/h261dec.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c index 377842c6fb..e7e07240ae 100644 --- a/libavcodec/h261dec.c +++ b/libavcodec/h261dec.c @@ -50,

[FFmpeg-devel] [PATCH 182/191] avcodec/h261dec: Make decoder init-threadsafe

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/h261dec.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c index 8a49e7d894..377842c6fb 100644 --- a/libavcodec/h261dec.c +++ b/libavcodec/h261dec.c @@ -26,6 +26,7 @

[FFmpeg-devel] [PATCH 181/191] avcodec/h261: Make ff_h261_common_init() thread-safe

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/h261.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/libavcodec/h261.c b/libavcodec/h261.c index 47bad4e57f..9c848eb7e8 100644 --- a/libavcodec/h261.c +++ b/libavcodec/h261.c @@ -25,6 +25,8 @@ * H.261 codec

[FFmpeg-devel] [PATCH 180/191] avcodec/h261enc: Remove unused function parameter

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/h261enc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavcodec/h261enc.c b/libavcodec/h261enc.c index 909bc23bb4..af836e4b30 100644 --- a/libavcodec/h261enc.c +++ b/libavcodec/h261enc.c @@ -322,8 +322,7 @@ void ff_h26

[FFmpeg-devel] [PATCH 179/191] avcodec/mpeg12: Reindentation

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/mpeg12.c | 54 ++--- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index e5c611414b..e9eff0c48e 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mp

[FFmpeg-devel] [PATCH 178/191] avcodec/mpeg12: Make initializing VLCs thread-safe

2020-11-23 Thread Andreas Rheinhardt
This automatically makes the eamad, eatqi and mdec init-threadsafe. Signed-off-by: Andreas Rheinhardt --- libavcodec/eamad.c | 1 + libavcodec/eatqi.c | 1 + libavcodec/mdec.c | 1 + libavcodec/mpeg12.c | 15 --- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/

[FFmpeg-devel] [PATCH 173/191] avcodec/aactab: Remove declaration of inexistent array

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/aactab.h | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/aactab.h b/libavcodec/aactab.h index ce6a7ba1d2..f950c13eee 100644 --- a/libavcodec/aactab.h +++ b/libavcodec/aactab.h @@ -95,7 +95,6 @@ DECLARE_ALIGNED(32, extern float, ff_aa

[FFmpeg-devel] [PATCH 177/191] avcodec/sinewin: Fix wrong number of elements of array declaration

2020-11-23 Thread Andreas Rheinhardt
There are actually only 14 elements in each ff_sine_windows array. Signed-off-by: Andreas Rheinhardt --- libavcodec/sinewin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/sinewin.h b/libavcodec/sinewin.h index 7b64096a71..1348740905 100644 --- a/libavcodec/sinew

[FFmpeg-devel] [PATCH 172/191] avcodec/nellymoserenc: Make encoder init-threadsafe

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/nellymoserenc.c | 41 ++ 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c index e5c9806be8..aea9fe286c 100644 --- a/libavcodec/nellymoserenc.

[FFmpeg-devel] [PATCH 176/191] avcodec/aactab: Make AAC encoder and decoders actually init-threadsafe

2020-11-23 Thread Andreas Rheinhardt
Commit 1a29804558c13ef512d9ef73a9b0d782af4fa5f2 guarded several initializations of static data in the AAC decoders with an AVOnce and set the FF_CODEC_CAP_INIT_THREADSAFE flag, believing the former to be sufficient for the latter. It wasn't, because several of these static tables are shared with ot

[FFmpeg-devel] [PATCH 171/191] avcodec/nellymoserenc: Cleanup generically on init failure

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/nellymoserenc.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c index 9d22ac8cca..e5c9806be8 100644 --- a/libavcodec/nellymoserenc.c +++ b/libavcodec/ne

[FFmpeg-devel] [PATCH 175/191] avcodec/aac: Share common init code of float decoder and encoder

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/aacdec_template.c | 10 ++ libavcodec/aacenc.c | 6 +- libavcodec/aactab.c | 14 ++ libavcodec/aactab.h | 3 +++ 4 files changed, 24 insertions(+), 9 deletions(-) diff --git a/libavcodec/aacdec_

[FFmpeg-devel] [PATCH 170/191] avcodec/nellymoserdec: Make decoder init-threadsafe

2020-11-23 Thread Andreas Rheinhardt
Easy now that initializing the ff_sine_* tables is thread-safe. Signed-off-by: Andreas Rheinhardt --- libavcodec/nellymoserdec.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c index d667d9ce79..49a21b43ce 100644

[FFmpeg-devel] [PATCH 174/191] avcodec/aacdec, aactab: Move kbd tables to their only user

2020-11-23 Thread Andreas Rheinhardt
The floating point kbd tables for 120 and 960 samples are only used by the floating point decoder whereas the fixed point kbd tables for 128 and 1024 samples are only used by the fixed point AAC decoder. So move these tables to their only users. This ensures that there are not accidentally used som

[FFmpeg-devel] [PATCH 169/191] avcodec/atrac3plus: Make decoder init-threadsafe

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/atrac3plus.h| 4 ++-- libavcodec/atrac3plusdec.c | 16 +++- libavcodec/atrac3plusdsp.c | 8 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/libavcodec/atrac3plus.h b/libavcodec/atrac3plus.h index 3c39e293

[FFmpeg-devel] [PATCH 168/191] avcodec/atrac1: Mark decoder as init-threadsafe

2020-11-23 Thread Andreas Rheinhardt
Possible because ff_init_ff_sine_windows() is now threadsafe. Signed-off-by: Andreas Rheinhardt --- libavcodec/atrac1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/atrac1.c b/libavcodec/atrac1.c index b2a2d5e6a1..31ec323370 100644 --- a/libavcodec/atrac1.c +++

[FFmpeg-devel] [PATCH 167/191] avcodec/sinewin_tablegen: Make initializing ff_sine_windows thread-safe

2020-11-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/sinewin_tablegen.h | 43 ++ libavcodec/sinewin_tablegen_template.c | 1 + 2 files changed, 44 insertions(+) diff --git a/libavcodec/sinewin_tablegen.h b/libavcodec/sinewin_tablegen.h index 1959074189..ced3b7874c 1

[FFmpeg-devel] [PATCH 166/191] avcodec/aacdec, sinewin: Move 120 and 960 point sine tables to aacdec

2020-11-23 Thread Andreas Rheinhardt
The floating point AAC decoder is the only user of these tables, so it makes sense to move them there. Furthermore, initializing the ordinary power-of-two sinetables is currently not thread-safe and if the 120- and 960-point sinetables were not moved, one would have to choose whether to guard initi

[FFmpeg-devel] [PATCH 165/191] avcodec/sinewin_tablegen: Use better check in assert

2020-11-23 Thread Andreas Rheinhardt
There are no ff_sine_windows for 2^i, 0 <= i < 5, so one should check for the index being >= 5. Signed-off-by: Andreas Rheinhardt --- libavcodec/sinewin_tablegen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/sinewin_tablegen.h b/libavcodec/sinewin_tablegen.h in

[FFmpeg-devel] [PATCH 2/6] avcodec/cbs_av1: add support for standard MP4/Matroska extradata

2020-11-23 Thread Jan Ekström
This way API clients can just pass the AV1CodecConfigurationRecord as extradata as-is without further filtering. --- libavcodec/cbs_av1.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c index 9badfe31e4..9ae2f59872

Re: [FFmpeg-devel] [PATCH] libavformat/avidec: Extract more metadata from the header

2020-11-23 Thread Thierry Foucu
On Wed, Nov 11, 2020 at 7:39 AM Anton Khirnov wrote: > Quoting Thierry Foucu (2020-11-07 00:10:17) > > --- > > libavformat/avidec.c | 17 + > > 1 file changed, 17 insertions(+) > > > > diff --git a/libavformat/avidec.c b/libavformat/avidec.c > > index 578cf68ce1..7e527e15ee 10064

[FFmpeg-devel] [PATCH 3/6] avcodec/av1{dec, parser}: move to ff_cbs_read_extradata_from_codec

2020-11-23 Thread Jan Ekström
This lets us re-utilize the extradata-related checks in the CBS to add support for passing the AV1CodecConfigurationRecord as extradata as-is without further filtering. --- libavcodec/av1_parser.c | 2 +- libavcodec/av1dec.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --g

[FFmpeg-devel] [PATCH 1/6] cbs: Add function to read extradata from an AVCodecContext

2020-11-23 Thread Jan Ekström
From: Mark Thompson This is useful in decoders and parsers, matching the way that bitstream filters read extradata from AVCodecParameters. --- libavcodec/cbs.c | 77 libavcodec/cbs.h | 11 +++ 2 files changed, 50 insertions(+), 38 deletions(-)

[FFmpeg-devel] [PATCH 6/6] avformat/matroskadec: remove special handling of av1c extradata

2020-11-23 Thread Jan Ekström
Libavcodec can now handle the standard AV1CodecConfigurationRecord extradata as-is. --- libavformat/matroskadec.c | 4 1 file changed, 4 deletions(-) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 44db2c8358..da0fadd47a 100644 --- a/libavformat/matroskadec.c +++ b/l

[FFmpeg-devel] [PATCH 0/6] Add support for utilizing av1c as extradata

2020-11-23 Thread Jan Ekström
Until now an API user with a non-libavformat MP4 or Matroska demuxer would have had to manually filter the extradata to skip the first four bytes when passing data to libavcodec, so that only the OBUs would remain. Now the AV1CodecConfigurationRecord structure can be passed to libavcodec as-is. Thi

[FFmpeg-devel] [PATCH 5/6] avformat/mov: remove special handling of av1c extradata

2020-11-23 Thread Jan Ekström
Libavcodec can now handle the AV1CodecConfigurationRecord structure as-is when passed as extradata, so the standard behavior of read-box-into-extradata should suffice, just like with AVC and HEVC. --- libavformat/mov.c | 30 +- 1 file changed, 1 insertion(+), 29 deletio

[FFmpeg-devel] [PATCH 4/6] avformat/av1: add support for passing through MP4/Matroska av1c

2020-11-23 Thread Jan Ekström
--- libavformat/av1.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/libavformat/av1.c b/libavformat/av1.c index 0cbffb1fd8..5512c4e0f7 100644 --- a/libavformat/av1.c +++ b/libavformat/av1.c @@ -375,6 +375,20 @@ int ff_isom_write_av1c(AVIOContext *pb, const uint8_t *buf, int

[FFmpeg-devel] [PATCH] libavformat/avidec.c: remove duplicated conversion

2020-11-23 Thread Thierry Foucu
ff_riff_info_conv deals with riff metadata already, so, not need to add those metadata in avi_metadata_conv --- libavformat/avidec.c | 8 1 file changed, 8 deletions(-) diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 7e527e15ee..75a76b995d 100644 --- a/libavformat/avidec.c

[FFmpeg-devel] [PATCH] avfilter: add asupcut filter

2020-11-23 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi | 15 +++ libavfilter/Makefile | 1 + libavfilter/af_asupcut.c | 248 +++ libavfilter/allfilters.c | 1 + 4 files changed, 265 insertions(+) create mode 100644 libavfilter/af_asupcut.c diff --g

Re: [FFmpeg-devel] [PATCH] avformat/mov: adjust skip_samples according to seek timestamp

2020-11-23 Thread Matthieu Bouron
On Tue, Nov 17, 2020 at 02:18:46PM +0100, Matthieu Bouron wrote: > On Mon, Nov 09, 2020 at 06:26:46PM +0100, Matthieu Bouron wrote: > > On Mon, Nov 02, 2020 at 12:42:19PM +0100, Matthieu Bouron wrote: > > > Currently skip_samples is set to start_pad if sample_time is lesser or > > > equal to 0. Thi

Re: [FFmpeg-devel] [PATCH v2 1/3] libavutil: introduce AVFilmGrainParams side data

2020-11-23 Thread Lynne
Nov 22, 2020, 21:28 by jamr...@gmail.com: > On 11/12/2020 4:28 PM, Lynne wrote: > >> Nov 12, 2020, 19:46 by jamr...@gmail.com: >> >>> On 11/12/2020 2:42 PM, Lynne wrote: >>> This patch introduces a new frame side data type AVFilmGrainParams for use with video codecs which are able to use

Re: [FFmpeg-devel] [PATCH v2 1/3] libavutil: introduce AVFilmGrainParams side data

2020-11-23 Thread James Almer
On 11/23/2020 9:08 AM, Lynne wrote: From e11df30e25f1b27a4ec3efb7dc894b8cf59113d2 Mon Sep 17 00:00:00 2001 From: Lynne Date: Thu, 12 Nov 2020 12:44:30 +0100 Subject: [PATCH v3 1/4] libavutil: introduce AVFilmGrainParams side data This patch introduces a new frame side data type AVFilmGrainPar

[FFmpeg-devel] [PATCH] avcodec/dxva2_av1: use correct grain parameters with update_grain = 0

2020-11-23 Thread Hendrik Leppkes
When update_grain is zero, the parameters should be taken from a reference frame instead. --- libavcodec/dxva2_av1.c | 59 +- 1 file changed, 30 insertions(+), 29 deletions(-) diff --git a/libavcodec/dxva2_av1.c b/libavcodec/dxva2_av1.c index c6cbd48f5f..35

Re: [FFmpeg-devel] [PATCH v3] hlsenc: expand hls_fmp4_init_filename with strftime()

2020-11-23 Thread Nikola Pajkovsky
Nikola Pajkovsky writes: > Nikola Pajkovsky writes: > > Ping? Ping. Steven, Andreas, can you look at the the latest iteration of the path? >> init.mp4 can be expanded with strftime() the same way as >> hls_segment_filename. >> >> Signed-off-by: Nikola Pajkovsky >> --- >> v2: fix memleak on s

Re: [FFmpeg-devel] [PATCH v3] hlsenc: expand hls_fmp4_init_filename with strftime()

2020-11-23 Thread ffmpeg
> 2020年11月23日 下午3:23,Nikola Pajkovsky 写道: > > Nikola Pajkovsky writes: > >> Nikola Pajkovsky writes: >> >> Ping? > > Ping. Steven, Andreas, can you look at the the latest iteration of the > path? > >>> init.mp4 can be expanded with strftime() the same way as >>> hls_segment_filename. >>>

[FFmpeg-devel] [PATCH 2/2] qsv: dump more info in error, debug and verbose mode

2020-11-23 Thread Haihao Xiang
Dump iopattern mode and the SDK error/warning desciptions for qsv based filters and iopattern mode for qsvenc Signed-off-by: Haihao Xiang --- libavcodec/qsvenc.c | 1 + libavfilter/qsvvpp.c | 21 +-- libavfilter/qsvvpp.h | 10 + libav

[FFmpeg-devel] [PATCH 1/2] lavc/qsv: use avpriv_ instead of ff_ as prefix for some functions

2020-11-23 Thread Haihao Xiang
ff_qsv_print_iopattern, ff_qsv_print_error and ff_qsv_print_warning can be used outside of lavc. In addition, ff_qsv_map_error is used in libavcodec/qsv.c only, so remove ff_ from ff_qsv_map_error and make it static. Signed-off-by: Haihao Xiang --- libavcodec/Makefile| 2 +- libavco