[FFmpeg-devel] [PATCH] libavcodec/qsvenc.c: add max_frame_size support for hevc_qsv

2020-11-29 Thread wenbin . chen
From: Wenbinc-Bin The max_frame_size parameter is set only when codec is h264. Now I add hevc in that conditional statement. Signed-off-by: Wenbin CHEN --- libavcodec/qsvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/qsvenc.c

[FFmpeg-devel] [PATCH] swscale/rgb2rgb_template: use shuffle macro on BE arches

2020-11-29 Thread Andriy Gelman
From: Andriy Gelman Fixes fate-qtrle-32bit on PPC64 qemu The macro does a simple byte swap on uint8 array without any casts, so it's valid on big endian arches. The mentioned test was failing because the byteswap function shuffle_bytes_3210_c() is used in the pixel format conversion

[FFmpeg-devel] [PATCH 074/134] avcodec/m101: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/m101.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/m101.c b/libavcodec/m101.c index 70f1da4f45..629a75a3a0 100644 --- a/libavcodec/m101.c +++ b/libavcodec/m101.c @@ -113,4 +113,5 @@ AVCodec ff_m101_decoder = { .init

Re: [FFmpeg-devel] [PATCH] avdevice/decklink: remove the duplicated warning message

2020-11-29 Thread lance . lmwang
On Sun, Nov 29, 2020 at 12:42:10PM +0100, Marton Balint wrote: > > > On Sun, 29 Nov 2020, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > ./ffmpeg -list_devices true -f decklink -i dummy > > [Blackmagic DeckLink indev @ 0x2f96d00] The "list_devices" option is > > deprecated:

[FFmpeg-devel] [PATCH 073/134] avcodec/notchlc: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/notchlc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/notchlc.c b/libavcodec/notchlc.c index 57ce70e945..d8eec97ee1 100644 --- a/libavcodec/notchlc.c +++ b/libavcodec/notchlc.c @@ -544,4 +544,5 @@ AVCodec ff_notchlc_decoder = {

[FFmpeg-devel] [PATCH 134/134] avcodec/dpcm: Mark decoders as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/dpcm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/dpcm.c b/libavcodec/dpcm.c index 7078419f08..55f18377c0 100644 --- a/libavcodec/dpcm.c +++ b/libavcodec/dpcm.c @@ -419,6 +419,7 @@ AVCodec ff_ ## name_ ## _decoder = {

[FFmpeg-devel] [PATCH 133/134] avcodec/dpxenc: Mark encoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/dpxenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/dpxenc.c b/libavcodec/dpxenc.c index a5960334d5..8ba26ed48f 100644 --- a/libavcodec/dpxenc.c +++ b/libavcodec/dpxenc.c @@ -293,4 +293,5 @@ AVCodec ff_dpx_encoder = {

[FFmpeg-devel] [PATCH 132/134] avcodec/dsicinaudio: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/dsicinaudio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/dsicinaudio.c b/libavcodec/dsicinaudio.c index 290dab41a5..18ad9b7de0 100644 --- a/libavcodec/dsicinaudio.c +++ b/libavcodec/dsicinaudio.c @@ -130,4 +130,5 @@ AVCodec

[FFmpeg-devel] [PATCH 131/134] avcodec/dsicinvideo: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/dsicinvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dsicinvideo.c b/libavcodec/dsicinvideo.c index 52f660fb51..3e8063edb4 100644 --- a/libavcodec/dsicinvideo.c +++ b/libavcodec/dsicinvideo.c @@ -330,6

[FFmpeg-devel] [PATCH 130/134] avcodec/dss_sp: Remove redundant memset

2020-11-29 Thread Andreas Rheinhardt
An AVCodecContext's priv_data has already been zeroed generically before calling the init function. Signed-off-by: Andreas Rheinhardt --- libavcodec/dss_sp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/dss_sp.c b/libavcodec/dss_sp.c index 4f8ce55cc6..8288cdf120 100644 ---

[FFmpeg-devel] [PATCH 128/134] avcodec/dvaudiodec: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/dvaudiodec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/dvaudiodec.c b/libavcodec/dvaudiodec.c index 5aa2a95553..2736d162a8 100644 --- a/libavcodec/dvaudiodec.c +++ b/libavcodec/dvaudiodec.c @@ -130,4 +130,5 @@ AVCodec

[FFmpeg-devel] [PATCH 129/134] avcodec/dss_sp: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/dss_sp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/dss_sp.c b/libavcodec/dss_sp.c index 14025fcdde..4f8ce55cc6 100644 --- a/libavcodec/dss_sp.c +++ b/libavcodec/dss_sp.c @@ -782,4 +782,5 @@ AVCodec ff_dss_sp_decoder = {

[FFmpeg-devel] [PATCH 127/134] avcodec/dvdsubenc: Mark encoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/dvdsubenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/dvdsubenc.c b/libavcodec/dvdsubenc.c index 9fa9d5b6d7..760e3b8c95 100644 --- a/libavcodec/dvdsubenc.c +++ b/libavcodec/dvdsubenc.c @@ -516,4 +516,5 @@ AVCodec

[FFmpeg-devel] [PATCH 126/134] avcodec/dxa: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/dxa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dxa.c b/libavcodec/dxa.c index 3f62eac252..c05d24b43e 100644 --- a/libavcodec/dxa.c +++ b/libavcodec/dxa.c @@ -370,5 +370,5 @@ AVCodec ff_dxa_decoder = {

[FFmpeg-devel] [PATCH 124/134] avcodec/eatgq: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/eatgq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/eatgq.c b/libavcodec/eatgq.c index 1308c07cff..e0bbe9c531 100644 --- a/libavcodec/eatgq.c +++ b/libavcodec/eatgq.c @@ -253,4 +253,5 @@ AVCodec ff_eatgq_decoder = { .init

[FFmpeg-devel] [PATCH 125/134] avcodec/eacmv: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/eacmv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/eacmv.c b/libavcodec/eacmv.c index b239acffda..2bc60155f4 100644 --- a/libavcodec/eacmv.c +++ b/libavcodec/eacmv.c @@ -240,5 +240,5 @@ AVCodec ff_eacmv_decoder

[FFmpeg-devel] [PATCH 123/134] avcodec/eatgv: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/eatgv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/eatgv.c b/libavcodec/eatgv.c index f82f7b9cca..2dce1f21c6 100644 --- a/libavcodec/eatgv.c +++ b/libavcodec/eatgv.c @@ -369,4 +369,5 @@ AVCodec ff_eatgv_decoder = { .close

[FFmpeg-devel] [PATCH 122/134] avcodec/escape124: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/escape124.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/escape124.c b/libavcodec/escape124.c index 94c2a961e6..d4af90803a 100644 --- a/libavcodec/escape124.c +++ b/libavcodec/escape124.c @@ -386,4 +386,5 @@ AVCodec

[FFmpeg-devel] [PATCH 121/134] avcodec/escape130: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/escape130.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/escape130.c b/libavcodec/escape130.c index a6fda901de..1f4c108ad1 100644 --- a/libavcodec/escape130.c +++ b/libavcodec/escape130.c @@ -355,5 +355,5 @@

[FFmpeg-devel] [PATCH 120/134] avcodec/evrcdec: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/evrcdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/evrcdec.c b/libavcodec/evrcdec.c index 8728c02a3b..00ced4c445 100644 --- a/libavcodec/evrcdec.c +++ b/libavcodec/evrcdec.c @@ -938,4 +938,5 @@ AVCodec ff_evrc_decoder = {

[FFmpeg-devel] [PATCH 119/134] avcodec/fastaudio: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/fastaudio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/fastaudio.c b/libavcodec/fastaudio.c index 1dda310612..68fc62bb2d 100644 --- a/libavcodec/fastaudio.c +++ b/libavcodec/fastaudio.c @@ -197,4 +197,5 @@ AVCodec

[FFmpeg-devel] [PATCH 118/134] avcodec/ffwavesynth: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/ffwavesynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ffwavesynth.c b/libavcodec/ffwavesynth.c index c99bac90ea..7e7e1f6954 100644 --- a/libavcodec/ffwavesynth.c +++ b/libavcodec/ffwavesynth.c @@ -469,5

[FFmpeg-devel] [PATCH 117/134] avcodec/fic: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/fic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/fic.c b/libavcodec/fic.c index 95baaedaa5..05343cac94 100644 --- a/libavcodec/fic.c +++ b/libavcodec/fic.c @@ -493,4 +493,5 @@ AVCodec ff_fic_decoder = { .close =

[FFmpeg-devel] [PATCH 116/134] avcodec/flacdec: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/flacdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index cf6128f897..810347fd52 100644 --- a/libavcodec/flacdec.c +++ b/libavcodec/flacdec.c @@ -678,4 +678,5 @@ AVCodec ff_flac_decoder = {

[FFmpeg-devel] [PATCH 115/134] avcodec/flacenc: Mark encoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/flacenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 0e707b9421..0c085f54c0 100644 --- a/libavcodec/flacenc.c +++ b/libavcodec/flacenc.c @@ -1510,5 +1510,5 @@ AVCodec

[FFmpeg-devel] [PATCH 114/134] avcodec/flacenc: Remove redundant free

2020-11-29 Thread Andreas Rheinhardt
An encoder's extradata is always freed generically. Signed-off-by: Andreas Rheinhardt --- libavcodec/flacenc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index e03af4bc87..0e707b9421 100644 --- a/libavcodec/flacenc.c +++

[FFmpeg-devel] [PATCH 113/134] avcodec/flacenc: Remove always-true check

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/flacenc.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index a2aa4bdf17..e03af4bc87 100644 --- a/libavcodec/flacenc.c +++ b/libavcodec/flacenc.c @@ -1449,12 +1449,11 @@

[FFmpeg-devel] [PATCH 112/134] avcodec/flacenc: Fix memleak upon init error

2020-11-29 Thread Andreas Rheinhardt
An AVMD5 struct would leak if an error happened after its allocation. Signed-off-by: Andreas Rheinhardt --- libavcodec/flacenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 8e7dbc52b4..a2aa4bdf17 100644 --- a/libavcodec/flacenc.c +++

[FFmpeg-devel] [PATCH 111/134] avcodec/flashsv: Mark decoders as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/flashsv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c index 59de1820be..85eb0f28be 100644 --- a/libavcodec/flashsv.c +++ b/libavcodec/flashsv.c @@ -517,7 +517,7 @@ AVCodec

[FFmpeg-devel] [PATCH 110/134] avcodec/flashsv: Return error if initializing zlib fails

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/flashsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c index f55cb0feeb..59de1820be 100644 --- a/libavcodec/flashsv.c +++ b/libavcodec/flashsv.c @@ -126,7 +126,7 @@ static av_cold

[FFmpeg-devel] [PATCH 109/134] avcodec/flashsv2enc: Mark encoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/flashsv2enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/flashsv2enc.c b/libavcodec/flashsv2enc.c index 6603d0ded1..42d1811884 100644 --- a/libavcodec/flashsv2enc.c +++ b/libavcodec/flashsv2enc.c @@ -918,5

[FFmpeg-devel] [PATCH 108/134] avcodec/flashsvenc: Mark encoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/flashsvenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c index 95ae988448..0fe1edae2d 100644 --- a/libavcodec/flashsvenc.c +++ b/libavcodec/flashsvenc.c @@ -279,4 +279,5 @@ AVCodec

[FFmpeg-devel] [PATCH 107/134] avcodec/flicvideo: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/flicvideo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/flicvideo.c b/libavcodec/flicvideo.c index 276c2ff2a6..6d4927c0d9 100644 --- a/libavcodec/flicvideo.c +++ b/libavcodec/flicvideo.c @@ -1112,4 +1112,5 @@ AVCodec

[FFmpeg-devel] [PATCH 106/134] avcodec/frwu: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/frwu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/frwu.c b/libavcodec/frwu.c index e68fda967f..e3195eeac0 100644 --- a/libavcodec/frwu.c +++ b/libavcodec/frwu.c @@ -125,4 +125,5 @@ AVCodec ff_frwu_decoder = { .decode

[FFmpeg-devel] [PATCH 105/134] avcodec/gif: Mark encoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/gif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/gif.c b/libavcodec/gif.c index de41992851..9400d98ae2 100644 --- a/libavcodec/gif.c +++ b/libavcodec/gif.c @@ -497,5 +497,5 @@ AVCodec ff_gif_encoder = {

[FFmpeg-devel] [PATCH 104/134] avcodec/g729dec: Mark decoders as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/g729dec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c index c181f23452..a687af1eeb 100644 --- a/libavcodec/g729dec.c +++ b/libavcodec/g729dec.c @@ -760,6 +760,7 @@ AVCodec ff_g729_decoder = {

[FFmpeg-devel] [PATCH 103/134] avcodec/g726: Mark encoders as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/g726.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/g726.c b/libavcodec/g726.c index 6f8aa6a725..c263ecffe0 100644 --- a/libavcodec/g726.c +++ b/libavcodec/g726.c @@ -409,6 +409,7 @@ AVCodec ff_adpcm_g726_encoder = {

[FFmpeg-devel] [PATCH 102/134] avcodec/g726: Mark decoders as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/g726.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/g726.c b/libavcodec/g726.c index 80cb064912..6f8aa6a725 100644 --- a/libavcodec/g726.c +++ b/libavcodec/g726.c @@ -514,6 +514,7 @@ AVCodec ff_adpcm_g726_decoder = {

[FFmpeg-devel] [PATCH 101/134] avcodec/g723_1enc: Mark encoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/g723_1enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/g723_1enc.c b/libavcodec/g723_1enc.c index b2ba3c2230..2edc445f3f 100644 --- a/libavcodec/g723_1enc.c +++ b/libavcodec/g723_1enc.c @@ -1208,4 +1208,5 @@ AVCodec

[FFmpeg-devel] [PATCH 100/134] avcodec/g723_1dec: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/g723_1dec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/g723_1dec.c b/libavcodec/g723_1dec.c index f601d31d00..6c30800742 100644 --- a/libavcodec/g723_1dec.c +++ b/libavcodec/g723_1dec.c @@ -1048,4 +1048,5 @@ AVCodec

[FFmpeg-devel] [PATCH 099/134] avcodec/g722enc: Mark encoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/g722enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/g722enc.c b/libavcodec/g722enc.c index 9357f170fe..22201799e0 100644 --- a/libavcodec/g722enc.c +++ b/libavcodec/g722enc.c @@ -381,5 +381,5 @@ AVCodec

[FFmpeg-devel] [PATCH 098/134] avcodec/g722dec: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/g722dec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/g722dec.c b/libavcodec/g722dec.c index 7c270bc33a..c8d879fadf 100644 --- a/libavcodec/g722dec.c +++ b/libavcodec/g722dec.c @@ -149,4 +149,5 @@ AVCodec ff_adpcm_g722_decoder =

[FFmpeg-devel] [PATCH 097/134] avcodec/huffyuvdec: Mark decoders as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/huffyuvdec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c index 16547b2b7f..5ca384e1ae 100644 --- a/libavcodec/huffyuvdec.c +++ b/libavcodec/huffyuvdec.c @@ -1273,7

[FFmpeg-devel] [PATCH 096/134] avcodec/huffyuvdec: Cleanup generically on init failure

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/huffyuvdec.c | 29 - 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c index e713b91e4d..16547b2b7f 100644 --- a/libavcodec/huffyuvdec.c +++

[FFmpeg-devel] [PATCH 095/134] avcodec/hnm4video: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/hnm4video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hnm4video.c b/libavcodec/hnm4video.c index 43baa9c572..1bebeda18c 100644 --- a/libavcodec/hnm4video.c +++ b/libavcodec/hnm4video.c @@ -507,5 +507,5 @@

[FFmpeg-devel] [PATCH 094/134] avcodec/hcom: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/hcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hcom.c b/libavcodec/hcom.c index 06fa25fcd2..135da7c490 100644 --- a/libavcodec/hcom.c +++ b/libavcodec/hcom.c @@ -144,5 +144,5 @@ AVCodec ff_hcom_decoder = {

[FFmpeg-devel] [PATCH 093/134] avcodec/interplayvideo: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/interplayvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/interplayvideo.c b/libavcodec/interplayvideo.c index 58400b6ace..3fe74ad0f2 100644 --- a/libavcodec/interplayvideo.c +++ b/libavcodec/interplayvideo.c

[FFmpeg-devel] [PATCH 091/134] avcodec/indeo3: Make decoder init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/indeo3.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c index 75113a7541..cf2cb9134f 100644 --- a/libavcodec/indeo3.c +++ b/libavcodec/indeo3.c @@ -31,6 +31,7 @@ #include

[FFmpeg-devel] [PATCH 092/134] avcodec/interplayacm: Make decoder init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/interplayacm.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/libavcodec/interplayacm.c b/libavcodec/interplayacm.c index 3704d1a2f2..f8ae39dea8 100644 --- a/libavcodec/interplayacm.c +++

[FFmpeg-devel] [PATCH 090/134] avcodec/ilbcdec: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/ilbcdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/ilbcdec.c b/libavcodec/ilbcdec.c index a82a27525c..100023105b 100644 --- a/libavcodec/ilbcdec.c +++ b/libavcodec/ilbcdec.c @@ -1486,4 +1486,5 @@ AVCodec ff_ilbc_decoder = {

[FFmpeg-devel] [PATCH 084/134] avcodec/msvideo1enc: Mark encoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/msvideo1enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/msvideo1enc.c b/libavcodec/msvideo1enc.c index b6ae92b2ac..bcd9ec657a 100644 --- a/libavcodec/msvideo1enc.c +++ b/libavcodec/msvideo1enc.c @@ -302,4 +302,5 @@ AVCodec

[FFmpeg-devel] [PATCH 089/134] avcodec/iff: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/iff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/iff.c b/libavcodec/iff.c index 21b69f6e94..89ad9160fe 100644 --- a/libavcodec/iff.c +++ b/libavcodec/iff.c @@ -1911,7 +1911,7 @@ AVCodec ff_iff_ilbm_decoder = {

[FFmpeg-devel] [PATCH 083/134] avcodec/msvideo1: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/msvideo1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/msvideo1.c b/libavcodec/msvideo1.c index c9bcce552d..3e176bd7ae 100644 --- a/libavcodec/msvideo1.c +++ b/libavcodec/msvideo1.c @@ -358,4 +358,5 @@ AVCodec

[FFmpeg-devel] [PATCH 088/134] avcodec/iff: Reorder checks to avoid unnecessary alloc+free

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/iff.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libavcodec/iff.c b/libavcodec/iff.c index 79f6215c77..21b69f6e94 100644 --- a/libavcodec/iff.c +++ b/libavcodec/iff.c @@ -299,14 +299,13 @@ static int

[FFmpeg-devel] [PATCH 082/134] avcodec/mss3: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/mss3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mss3.c b/libavcodec/mss3.c index 74f4b5e671..f57efe50c7 100644 --- a/libavcodec/mss3.c +++ b/libavcodec/mss3.c @@ -869,5 +869,5 @@ AVCodec ff_msa1_decoder = {

[FFmpeg-devel] [PATCH 087/134] avcodec/jvdec: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/jvdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/jvdec.c b/libavcodec/jvdec.c index 6f10157b0d..f60db9b136 100644 --- a/libavcodec/jvdec.c +++ b/libavcodec/jvdec.c @@ -243,4 +243,5 @@ AVCodec ff_jv_decoder = { .close

[FFmpeg-devel] [PATCH 081/134] avcodec/mss1: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/mss1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/mss1.c b/libavcodec/mss1.c index 7af8024d63..17830d596d 100644 --- a/libavcodec/mss1.c +++ b/libavcodec/mss1.c @@ -228,4 +228,5 @@ AVCodec ff_mss1_decoder = { .close

[FFmpeg-devel] [PATCH 086/134] avcodec/lagarith: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/lagarith.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c index d81e55cf4c..094a82b96a 100644 --- a/libavcodec/lagarith.c +++ b/libavcodec/lagarith.c @@ -29,6 +29,7 @@ #include "avcodec.h"

[FFmpeg-devel] [PATCH 080/134] avcodec/msrle: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/msrle.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/msrle.c b/libavcodec/msrle.c index 9233b34cc5..d8a9a24cbe 100644 --- a/libavcodec/msrle.c +++ b/libavcodec/msrle.c @@ -176,4 +176,5 @@ AVCodec ff_msrle_decoder = { .decode

[FFmpeg-devel] [PATCH 085/134] avcodec/mvcdec: Mark decoders as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/mvcdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/mvcdec.c b/libavcodec/mvcdec.c index e507674c22..5dc72c4715 100644 --- a/libavcodec/mvcdec.c +++ b/libavcodec/mvcdec.c @@ -262,6 +262,7 @@ AVCodec ff_mvc1_decoder = {

[FFmpeg-devel] [PATCH 079/134] avcodec/gsmdec: Mark decoders as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/gsmdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/gsmdec.c b/libavcodec/gsmdec.c index cd56995183..33b74026dc 100644 --- a/libavcodec/gsmdec.c +++ b/libavcodec/gsmdec.c @@ -121,6 +121,7 @@ AVCodec ff_gsm_decoder = {

[FFmpeg-devel] [PATCH 078/134] avcodec/mmvideo: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/mmvideo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/mmvideo.c b/libavcodec/mmvideo.c index 7f650be80e..ea13970ddb 100644 --- a/libavcodec/mmvideo.c +++ b/libavcodec/mmvideo.c @@ -248,4 +248,5 @@ AVCodec ff_mmvideo_decoder = {

[FFmpeg-devel] [PATCH 077/134] avcodec/midivid: Mark decoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/midivid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/midivid.c b/libavcodec/midivid.c index 2200440e2c..a86142dd7b 100644 --- a/libavcodec/midivid.c +++ b/libavcodec/midivid.c @@ -288,5 +288,5 @@ AVCodec

[FFmpeg-devel] [PATCH 076/134] avcodec/magicyuvenc: Mark encoder as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/magicyuvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/magicyuvenc.c b/libavcodec/magicyuvenc.c index d53fe6f328..714252bde9 100644 --- a/libavcodec/magicyuvenc.c +++ b/libavcodec/magicyuvenc.c @@ -574,5

[FFmpeg-devel] [PATCH 075/134] avcodec/mace: Mark decoders as init-threadsafe

2020-11-29 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/mace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/mace.c b/libavcodec/mace.c index e332a72d6d..c6b2bf12c5 100644 --- a/libavcodec/mace.c +++ b/libavcodec/mace.c @@ -295,6 +295,7 @@ AVCodec ff_mace3_decoder = {

Re: [FFmpeg-devel] [PATCH] avcodec/notchlc: Check available space for luma block code and alpha code

2020-11-29 Thread Paul B Mahol
Please do not push unless properly tested. On Sun, Nov 29, 2020 at 4:09 PM Michael Niedermayer wrote: > On Sat, Nov 28, 2020 at 01:01:48AM +0100, Michael Niedermayer wrote: > > Fixes: Timeout (too long -> 2sec) > > Fixes: >

Re: [FFmpeg-devel] [PATCH v3] avcodec/hevcdec: dynamic allocate sList and HEVClcList

2020-11-29 Thread Nuo Mi
tested with: make fate-hevc THREADS=17 THREAD_TYPE=slice make fate-hevc THREADS=17 THREAD_TYPE=frame On Sun, Nov 29, 2020 at 11:30 PM Nuo Mi wrote: > following comandline will crash the ffmpeg > ffmpeg -threads 17 -thread_type slice -i WPP_A_ericsson_MAIN_2.bit out.yuv > -y > > the

[FFmpeg-devel] [PATCH v3] avcodec/hevcdec: dynamic allocate sList and HEVClcList

2020-11-29 Thread Nuo Mi
following comandline will crash the ffmpeg ffmpeg -threads 17 -thread_type slice -i WPP_A_ericsson_MAIN_2.bit out.yuv -y the HEVCContext->sList size is MAX_NB_THREADS(16), any > 16 thread number will crash the application --- libavcodec/hevcdec.c | 26 +++---

Re: [FFmpeg-devel] [PATCH 1/5] avformat/mpegts: Limit iterations of get_packet_size()

2020-11-29 Thread Michael Niedermayer
On Fri, Oct 23, 2020 at 12:41:08AM +0200, Michael Niedermayer wrote: > This is a pathological case where the fuzzer provides only 2 bytes per > iteration. > > Fixes: Timeout (>30 -> 0.9sec) > Fixes: > 26488/clusterfuzz-testcase-minimized-ffmpeg_dem_MPEGTS_fuzzer-5911031077142528 > > Found-by:

Re: [FFmpeg-devel] [PATCH] avcodec/notchlc: Check available space for luma block code and alpha code

2020-11-29 Thread Michael Niedermayer
On Sat, Nov 28, 2020 at 01:01:48AM +0100, Michael Niedermayer wrote: > Fixes: Timeout (too long -> 2sec) > Fixes: > 25439/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_NOTCHLC_fuzzer-5688211127664640 > > Found-by: continuous fuzzing process >

Re: [FFmpeg-devel] [PATCH] avcodec/hevcdec: slice decoder, fix crash for thread_number > 16

2020-11-29 Thread Nuo Mi
Hi Marton, thanks for the suggstion, I take a deep look for this, semes it's not as simple as I thought. thread_number is just one part of the problem, another problem is the wpp thread count. In avcodec_open2, we call ff_thread_init before the avctx->codec->init( avct). So, no matter how we

Re: [FFmpeg-devel] [PATCH] avdevice/decklink: remove the duplicated warning message

2020-11-29 Thread Marton Balint
On Sun, 29 Nov 2020, lance.lmw...@gmail.com wrote: From: Limin Wang ./ffmpeg -list_devices true -f decklink -i dummy [Blackmagic DeckLink indev @ 0x2f96d00] The "list_devices" option is deprecated: list available devices [decklink @ 0x2f96400] The -list_devices option is deprecated and

Re: [FFmpeg-devel] [PATCH] avcodec/hevcdec: slice decoder, fix crash for thread_number > 16

2020-11-29 Thread Marton Balint
On Sun, 29 Nov 2020, Nuo Mi wrote: On Sun, Nov 29, 2020 at 1:54 AM Marton Balint wrote: On Sat, 28 Nov 2020, Nuo Mi wrote: > following comandline will crash the ffmpeg > ffmpeg -threads 17 -thread_type slice -i WPP_A_ericsson_MAIN_2.bit out.yuv -y > > the HEVCContext->sList size is