[FFmpeg-devel] [PATCH v3 3/8] avcodec/movtextenc: Don't presume every style to have a font

2020-10-17 Thread Andreas Rheinhardt
Fixes segfaults in the absence of fonts; this can happen because the file didn't contain any or because the allocation of the font-string failed. Signed-off-by: Andreas Rheinhardt --- libavcodec/movtextenc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/m

[FFmpeg-devel] [PATCH v3 1/8] avcodec/movtextenc: Fix potential use of uninitialized value

2020-10-17 Thread Andreas Rheinhardt
Background colour was never initialized if no style was available. Use a sane default of zero (i.e. completely transparent). Fixes Coverity issue #1461471. Signed-off-by: Andreas Rheinhardt --- No change for this patch since last time; I am just resending all because I have added a few patches t

[FFmpeg-devel] [PATCH v3 2/8] avcodec/movtextenc: Reset array counter after freeing array

2020-10-17 Thread Andreas Rheinhardt
Otherwise the mov_text encoder can segfault when given subtitles with more than one AVSubtitleRect if one of the first nb_rects - 1 rects contained a style attribute. Signed-off-by: Andreas Rheinhardt --- The earlier commit message claimed to be about a muxer in avcodec/movtextdec. I still don't

[FFmpeg-devel] [PATCH v3 5/8] avcodec/movtextenc: Fix undefined left shifts outside the range of int

2020-10-17 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- Alternatively one could also change the types of the colors in ASSStyle (ass_split.h) to uint32_t. libavcodec/movtextenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/movtextenc.c b/libavcodec/movtextenc.c index 73d998d080.

[FFmpeg-devel] [PATCH v3 7/8] avcodec/movtextenc: Remove redundant function parameters

2020-10-17 Thread Andreas Rheinhardt
It makes no sense to call the functions to write styl, hlit or hclr boxes with a different box name than "styl", "hlit" or "hclr". Therefore this commit inlines these values in the functions, removes the function parameter containing the box's name and removes the (non obsolete) box names from the

[FFmpeg-devel] [PATCH v3 4/8] avcodec/movtextenc: Fix memleak on (re)allocation error

2020-10-17 Thread Andreas Rheinhardt
Up until now, the mov_text encoder used the dynamic array API for its list of style attributes; it used the (horrible) av_dynarray_add() which works with an array of pointers; on error it frees its array but not the buffers referenced by the pointers said array contains. It also returns no error co

[FFmpeg-devel] [PATCH v3 6/8] avcodec/movtextenc: Simplify writing to AVBPrint

2020-10-17 Thread Andreas Rheinhardt
The mov_text encoder uses an AVBPrint to assemble the subtitles; yet mov_text subtitles are not pure text; they also have a binary portion that was mostly handled as follows: uint32_t size = /* calculation */; size = AV_RB32(&size); av_bprint_append_data(bprint, (const char*)&size, 4);

[FFmpeg-devel] [PATCH v3 8/8] avcodec/movtextenc: Cleanup generically on init failure

2020-10-17 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/movtextenc.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/libavcodec/movtextenc.c b/libavcodec/movtextenc.c index 2082dc9b25..1bef21e0b9 100644 --- a/libavcodec/movtextenc.c +++ b/libavcodec/movtextenc.c @@ -30

Re: [FFmpeg-devel] [PATCH v2] lavf/url: fix rel path’s query string contains :/

2020-10-17 Thread Marton Balint
On Sat, 17 Oct 2020, caihaonin...@gmail.com wrote: From: "ruiquan.crq" Signed-off-by: ruiquan.crq --- libavformat/tests/url.c | 1 + libavformat/url.c | 2 +- tests/ref/fate/url | 4 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libavformat/tests/url.c b/libavfo

Re: [FFmpeg-devel] [PATCH v1] libavformat/hls: During operation, the user exits and interrupts, causing pls->segment to be released, resulting in a null pointer crash

2020-10-17 Thread Steven Liu
> 在 2020年10月17日,13:38,徐慧书 写道: > > Andreas Rheinhardt 于2020年10月16日周五 下午9:32写道: > >> javashu2...@gmail.com: >>> From: bevis >>> >>> Signed-off-by: bevis >>> --- >>> libavformat/hls.c | 5 +++-- >>> 1 file changed, 3 insertions(+), 2 deletions(-) >>> >>> diff --git a/libavformat/hls.c b/libav

Re: [FFmpeg-devel] [PATCH v3 1/6] ffmpeg: deduplicate init_output_stream usage logic

2020-10-17 Thread Jan Ekström
On Fri, Oct 16, 2020 at 11:03 PM Michael Niedermayer wrote: > > On Fri, Oct 16, 2020 at 04:16:44PM +0300, Jan Ekström wrote: > > Adds a wrapper function, which handles any errors depending on how > > fatal a failure would be. > > --- > > fftools/ffmpeg.c | 51 -

Re: [FFmpeg-devel] [PATCH 4/5] avformat/icodec: Change order of operations to avoid NULL dereference

2020-10-17 Thread Michael Niedermayer
On Sat, Oct 17, 2020 at 07:52:02AM +1100, Peter Ross wrote: > On Fri, Oct 16, 2020 at 07:35:29PM +0200, Michael Niedermayer wrote: > > Fixes: SEGV on unknown address 0x > > Fixes: > > 26379/clusterfuzz-testcase-minimized-ffmpeg_dem_ICO_fuzzer-5709011753893888 > > > > Found-by: continu

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/cook: Check subpacket index against max

2020-10-17 Thread Michael Niedermayer
On Sun, Sep 27, 2020 at 10:20:53PM +0200, Michael Niedermayer wrote: > Fixes: off by 1 error > Fixes: index 5 out of bounds for type 'COOKSubpacket [5]' > Fixes: > 25772/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_COOK_fuzzer-5762459498184704.fuzz > > Found-by: continuous fuzzing process >

Re: [FFmpeg-devel] [PATCH 3/3] avformat/flvdec: Check for EOF in amf_parse_object()

2020-10-17 Thread Michael Niedermayer
On Fri, Oct 09, 2020 at 06:47:15PM +0200, Michael Niedermayer wrote: > On Fri, Oct 09, 2020 at 10:37:20PM +0800, Steven Liu wrote: > > > > > > > 在 2020年10月9日,03:19,Michael Niedermayer 写道: > > > > > > Fixes: Timeout (too long -> 1ms) > > > Fixes: > > > 26108/clusterfuzz-testcase-minimized-ffmpe

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/mv30: Fix multiple integer overflows

2020-10-17 Thread Michael Niedermayer
On Sun, Oct 04, 2020 at 09:41:43PM +0200, Michael Niedermayer wrote: > Fixes: signed integer overflow: -895002 * 2400 cannot be represented in type > 'int' > Fixes: > 26052/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MV30_fuzzer-5431812577558528 > > Found-by: continuous fuzzing process >

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/smacker: Check remaining bits in SMK_BLK_FULL

2020-10-17 Thread Michael Niedermayer
On Mon, Oct 05, 2020 at 03:24:08AM +0200, Andreas Rheinhardt wrote: > Michael Niedermayer: > > Fixes: out of array access > > Fixes: > > 26047/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMACKER_fuzzer-5083031667474432 > > > > Found-by: continuous fuzzing process > > https://github.com/goo

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/hevc_mvs: Cleanup ff_hevc_set_neighbour_available()

2020-10-17 Thread Michael Niedermayer
On Fri, Oct 16, 2020 at 01:30:27PM +0200, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > libavcodec/hevc_mvs.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) will apply patchset [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0F

Re: [FFmpeg-devel] [PATCH v2] lavf/url: fix rel path’s query string contains :/

2020-10-17 Thread 蔡昊凝
Marton Balint 于2020年10月17日周六 下午4:35写道: > And why not also add # here as well? With the same logic, there can be > URL-s like dummy.mp4#t=0:02:00,121.5 and they will fail currently. > > Also a more clear wording for the comment: > /* lavf "schemes" can contain options but not some RFC 3986 delimit

[FFmpeg-devel] [PATCH v2] fix relative URLs contains "://" or "#"

2020-10-17 Thread caihaoning83
From: "ruiquan.crq" Signed-off-by: ruiquan.crq --- libavformat/tests/url.c | 2 ++ libavformat/url.c | 2 +- tests/ref/fate/url | 8 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libavformat/tests/url.c b/libavformat/tests/url.c index 2440ae08bc..2eb597bb5e

[FFmpeg-devel] [PATCH v3] lavf/url: fix rel path’s query string contains :/

2020-10-17 Thread caihaoning83
From: "ruiquan.crq" Signed-off-by: ruiquan.crq --- libavformat/tests/url.c | 2 ++ libavformat/url.c | 2 +- tests/ref/fate/url | 8 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libavformat/tests/url.c b/libavformat/tests/url.c index 2440ae08bc..2eb597bb5e

Re: [FFmpeg-devel] [PATCH 3/3] avformat/mov: remove an always true condition

2020-10-17 Thread Zhao Zhili
> On Sep 18, 2020, at 10:33 PM, Zhao Zhili wrote: > > From: Zhao Zhili > > --- > libavformat/mov.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/mov.c b/libavformat/mov.c > index 9fc0db24d5..f99605c2cd 100644 > --- a/libavformat/mov.c > +++ b/libavformat

Re: [FFmpeg-devel] [PATCH] avformat/mov: make better use of av_fast_realloc and fix spurious ENOMEM

2020-10-17 Thread Zhao Zhili
Ping for review. > On Sep 24, 2020, at 1:28 AM, Zhao Zhili wrote: > > If sc->ctts_allocated_size is larger than the new buffer size, > av_fast_realloc() will return NULL. Since sc->ctts_data is freed, > ctts_allocated_size should be reset to zero. It's better to avoid > free sc->ctts_data at the

Re: [FFmpeg-devel] [PATCH v3 7/8] avcodec/movtextenc: Remove redundant function parameters

2020-10-17 Thread Zhao Zhili
> On Oct 17, 2020, at 3:37 PM, Andreas Rheinhardt > wrote: > > It makes no sense to call the functions to write styl, hlit or hclr boxes > with a different box name than "styl", "hlit" or "hclr". Therefore this > commit inlines these values in the functions, removes the function > parameter co

Re: [FFmpeg-devel] [PATCH v3 7/8] avcodec/movtextenc: Remove redundant function parameters

2020-10-17 Thread Andreas Rheinhardt
Zhao Zhili: > > >> On Oct 17, 2020, at 3:37 PM, Andreas Rheinhardt >> wrote: >> >> It makes no sense to call the functions to write styl, hlit or hclr boxes >> with a different box name than "styl", "hlit" or "hclr". Therefore this >> commit inlines these values in the functions, removes the fu

Re: [FFmpeg-devel] [PATCH v3] Unbreak av_malloc_max(0) API/ABI

2020-10-17 Thread Andreas Rheinhardt
Joakim Tjernlund: > On Fri, 2020-10-16 at 01:38 +0200, Andreas Rheinhardt wrote: >> CAUTION: This email originated from outside of the organization. Do not >> click links or open attachments unless you recognize the sender and know the >> content is safe. >> >> >> Joakim Tjernlund: >>> From >>>

Re: [FFmpeg-devel] [PATCH 3/9] avcodecc/asvdec: Avoid reversing input data twice

2020-10-17 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Up until now the ASV2 decoder used an ordinary big-endian bitreader to > read data actually destined for a little-endian bitreader; this is done > by reversing the whole input packet bitwise, using the big-endian > bigreader and reversing (and shifting) the result again. This

[FFmpeg-devel] [PATCH 02/11] avcodec/movtextdec: Fix leaks of strings upon reallocation failure

2020-10-17 Thread Andreas Rheinhardt
Up until now, the 3GPP Timed Text decoder used av_dynarray_add() for a list of font entries, a structure which contains an allocated string. The font entries are owned by the pointers in the dynamic array and are therefore unsuitable for av_dynarray_add() which simply frees the array, but not the f

[FFmpeg-devel] [PATCH 04/11] avcodec/movtextdec: Simplify finding default font

2020-10-17 Thread Andreas Rheinhardt
There is no need to walk through the list of fonts twice. Signed-off-by: Andreas Rheinhardt --- libavcodec/movtextdec.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c index e46c932c20..974118c4c1 100644 --- a/libav

[FFmpeg-devel] [PATCH 03/11] avcodec/movtextdec: Simplify checking for invalid extradata

2020-10-17 Thread Andreas Rheinhardt
Every font entry occupies at least three bytes, so checking early whether there is that much data available is a low-effort way to exclude invalid extradata. Doing so leads to an overall simplification. Signed-off-by: Andreas Rheinhardt --- libavcodec/movtextdec.c | 18 +++--- 1 file

[FFmpeg-devel] [PATCH 01/11] avcodec/movtextdec: Reset counter of fonts when freeing them

2020-10-17 Thread Andreas Rheinhardt
If allocating fonts fails when reading the header, all fonts are freed, yet the counter of fonts is not reset and no error is returned; when subtitles are decoded lateron, the inexistent list of fonts is searched for the matching font for this particular entry which of course leads to a segfault.

[FFmpeg-devel] [PATCH 05/11] avcodec/movtextdec: Fix leaks on (re)allocation failure

2020-10-17 Thread Andreas Rheinhardt
Up until now, the 3GPP Timed Text decoder used av_dynarray_add() for a list of style entries. Said entries are inidiviually allocated and owned by the pointers in the dynamic array and are therefore unsuitable for av_dynarray_add() which simply frees the array, but not the entries on error. In this

[FFmpeg-devel] [PATCH 11/11] avcodec/movtextdec: Reindentation

2020-10-17 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/movtextdec.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c index 95dfb2a0af..ad790bf44c 100644 --- a/libavcodec/movtextdec.c +++ b/libavcodec/movtextdec.

[FFmpeg-devel] [PATCH 06/11] avcodec/movtextdec: Skip empty styles

2020-10-17 Thread Andreas Rheinhardt
They would either lead to unnecessary ASS tags being emitted (namely tags that are reset immediately thereafter) or would lead to problems when parsing: e.g. if a zero-length style immediately follows another style, the current code will end the preceding style and set the zero-length style as the

[FFmpeg-devel] [PATCH 08/11] avcodec/movtextdec: Remove unnecessary variable

2020-10-17 Thread Andreas Rheinhardt
style_active doesn't do anything any more: It is already assured that style_active is one when one reaches the end of a style. Signed-off-by: Andreas Rheinhardt --- libavcodec/movtextdec.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/libavcodec/movtextdec.c b/liba

[FFmpeg-devel] [PATCH 09/11] avcodec/movtextdec: Avoid loop when writing UTF-8 character to AVBPrint

2020-10-17 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/movtextdec.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c index 1bfca8b79d..e5ce58a184 100644 --- a/libavcodec/movtextdec.c +++ b/libavcodec/movtextdec.c @@ -430,7 +430,

[FFmpeg-devel] [PATCH 10/11] avcodec/movtextdec: Use bytestream API

2020-10-17 Thread Andreas Rheinhardt
Improves readability. Signed-off-by: Andreas Rheinhardt --- libavcodec/movtextdec.c | 74 - 1 file changed, 28 insertions(+), 46 deletions(-) diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c index e5ce58a184..95dfb2a0af 100644 --- a/libavcod

[FFmpeg-devel] [PATCH 07/11] avcodec/movtextdec: Fix immediately adjacent styles

2020-10-17 Thread Andreas Rheinhardt
The checks for whether a style should be opened/closed at the current character position are as follows: A variable entry contained the index of the currently active or potentially next active style. If the current character position coincided with the start of style[entry], the style was activated

[FFmpeg-devel] [PATCH] avcodec/av1dec: fix loading PrevGmParams for frames with primary_ref_frame none

2020-10-17 Thread James Almer
Signed-off-by: James Almer --- libavcodec/av1dec.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index 54aeba1812..04aaf5d148 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -109,13 +109,18 @@ static void read_

[FFmpeg-devel] [PATCH] avformat/format: ensure av_probe_input_buffer2() gives correct format

2020-10-17 Thread zsugabubus
av_probe_input_buffer2() iterates until *fmt is found. If *fmt is not zeroed out beforehand, no probes will be taken because it is detected that format is already found at the beginning. In these cases method returns success with *fmt potentially containing the previous junk. Signed-off-by: zsugab

[FFmpeg-devel] [PATCH] avfilter: add frequency and phase shift filters

2020-10-17 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi| 30 libavfilter/Makefile| 2 + libavfilter/af_afreqshift.c | 274 libavfilter/allfilters.c| 2 + 4 files changed, 308 insertions(+) create mode 100644 libavfilter/af_afreqshif

[FFmpeg-devel] [PATCH 6/6] avformat/wavdec: Refuse to read chunks bigger than the filesize in w64_read_header()

2020-10-17 Thread Michael Niedermayer
Fixes: OOM Fixes: 26414/clusterfuzz-testcase-minimized-ffmpeg_dem_FWSE_fuzzer-5070632544632832 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/wavdec.c | 3 ++- 1 file changed, 2 insertions(+

[FFmpeg-devel] [PATCH 4/6] avformat/ifv: Check that total frames do not overflow

2020-10-17 Thread Michael Niedermayer
Fixes: Infinite loop Fixes: 26392/clusterfuzz-testcase-minimized-ffmpeg_dem_GIF_fuzzer-5713658237419520 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/ifv.c | 14 +++--- 1 file chang

[FFmpeg-devel] [PATCH 5/6] avformat/genh: Check block_align for how it will be used in SDX2_DPCM

2020-10-17 Thread Michael Niedermayer
Fixes: signed integer overflow: 19922944 * 1024 cannot be represented in type 'int' Fixes: 26402/clusterfuzz-testcase-minimized-ffmpeg_dem_VMD_fuzzer-5745470053548032 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niede

[FFmpeg-devel] [PATCH 2/6] avformat/bethsoftvid: Check image dimensions before use

2020-10-17 Thread Michael Niedermayer
Fixes: signed integer overflow: 55255 * 53207 cannot be represented in type 'int' Fixes: 26387/clusterfuzz-testcase-minimized-ffmpeg_dem_AVS2_fuzzer-568426071552 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Nieder

[FFmpeg-devel] [PATCH 1/6] avformat/asfdec_f: Check for negative ext_len

2020-10-17 Thread Michael Niedermayer
Fixes: Infinite loop Fixes: 26376/clusterfuzz-testcase-minimized-ffmpeg_dem_PCM_U32LE_fuzzer-6050518830678016 Fixes: 26377/clusterfuzz-testcase-minimized-ffmpeg_dem_TY_fuzzer-4838195726123008 Fixes: 26384/clusterfuzz-testcase-minimized-ffmpeg_dem_G729_fuzzer-5173450337157120 Fixes: 26396/cluste

[FFmpeg-devel] [PATCH 3/6] avformat/au: Check for EOF in au_read_annotation()

2020-10-17 Thread Michael Niedermayer
Fixes: Timeout (too looong -> 1 ms) Fixes: 26366/clusterfuzz-testcase-minimized-ffmpeg_dem_SDX_fuzzer-5655584843759616 Fixes: 26391/clusterfuzz-testcase-minimized-ffmpeg_dem_ALP_fuzzer-5484026133217280 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/

Re: [FFmpeg-devel] [PATCH] libavformat/hls: add support for SAMPLE-AES decryption in HLS demuxer

2020-10-17 Thread Nachiket Tarate
___ From: ffmpeg-devel on behalf of Michael Niedermayer Sent: Thursday, October 15, 2020 11:35 PM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] libavformat/hls: add support for SAMPLE-AES decryption in HLS demuxer On Thu,

Re: [FFmpeg-devel] [PATCH 0/5] Fix adpcm_swf support in WAV.

2020-10-17 Thread Zane van Iperen
On 16/10/20 4:22 pm, Zane van Iperen wrote: > > adpcm_swf support in WAV is completely broken. block_align isn't set > correctly, so > the demuxer gives incorrect packets to the decoder. The encoder doesn't > provide a > value for block_align, so it's set to 1. > > All of this has no bearing

Re: [FFmpeg-devel] [PATCH] avfilter: add frequency and phase shift filters

2020-10-17 Thread Zane van Iperen
On 18/10/20 6:45 am, Paul B Mahol wrote: > > Signed-off-by: Paul B Mahol > --- > doc/filters.texi| 30 > libavfilter/Makefile| 2 + > libavfilter/af_afreqshift.c | 274 > libavfilter/allfilters.c| 2 + > 4 files change

[FFmpeg-devel] [PATCH 1/3] avcodec/on2avcdata: Deduplicate symbol tables

2020-10-17 Thread Andreas Rheinhardt
Saves about 10KB. Signed-off-by: Andreas Rheinhardt --- libavcodec/on2avcdata.c | 921 ++-- 1 file changed, 36 insertions(+), 885 deletions(-) diff --git a/libavcodec/on2avcdata.c b/libavcodec/on2avcdata.c index ec983572e6..0aa49cee78 100644 --- a/libavcodec/

[FFmpeg-devel] [PATCH 2/3] avcodec/on2avc: Unify initializing quad and pair VLCs

2020-10-17 Thread Andreas Rheinhardt
Up until now, quad VLCs are initialized with codes of type uint32_t, pair VLCs with codes of type uint16_t. There were two separate loops in the decoder's init function for each type of VLC. This commit unifies this: The type of the codes are now passed in as void * and the actual size of the codes

[FFmpeg-devel] [PATCH 3/3] avcodec/on2avc: Use least max_depth for get_vlc2()

2020-10-17 Thread Andreas Rheinhardt
The longest codes of any VLC codebooks are 18 bits long and the VLC tables itself use 9 bits; therefore it is sufficient to read twice from the table, yet this has been done thrice. Signed-off-by: Andreas Rheinhardt --- libavcodec/on2avc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-