Browse Source

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>
tags/n4.4
Andreas Rheinhardt 5 years ago
parent
commit
ebbdb928e8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/h261dec.c

+ 1
- 1
libavcodec/h261dec.c View File

@@ -431,7 +431,7 @@ static int h261_decode_mb(H261Context *h)


// Read cbp // Read cbp
if (HAS_CBP(h->mtype)) 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) { if (s->mb_intra) {
s->current_picture.mb_type[xy] = MB_TYPE_INTRA; s->current_picture.mb_type[xy] = MB_TYPE_INTRA;


Loading…
Cancel
Save