diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-09 03:04:59 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-31 11:56:18 +0100 |
commit | ebbdb928e88e160fddedf6eb182503bfefadb37d (patch) | |
tree | 75086d7cd4b46de68722f36bd34cf91cb53148f9 /libavcodec | |
parent | 2b04405b63ef6885f4c8a1898b51577152a151c8 (diff) | |
download | ffmpeg-ebbdb928e88e160fddedf6eb182503bfefadb37d.tar.gz |
avcodec/h261dec: Don't use too big max_depth in get_vlc2()
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h261dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c index 8a49e7d894..4373a60df4 100644 --- a/libavcodec/h261dec.c +++ b/libavcodec/h261dec.c @@ -431,7 +431,7 @@ static int h261_decode_mb(H261Context *h) // Read cbp if (HAS_CBP(h->mtype)) - cbp = get_vlc2(&s->gb, h261_cbp_vlc.table, H261_CBP_VLC_BITS, 2) + 1; + cbp = get_vlc2(&s->gb, h261_cbp_vlc.table, H261_CBP_VLC_BITS, 1) + 1; if (s->mb_intra) { s->current_picture.mb_type[xy] = MB_TYPE_INTRA; |