Browse Source

avcodec/ituh263dec: make while get_bits loop more robust by checking bits left

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
810f9c5eaa
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/ituh263dec.c

+ 2
- 0
libavcodec/ituh263dec.c View File

@@ -1115,6 +1115,8 @@ int ff_h263_decode_picture_header(MpegEncContext *s)
/* PEI */
while (get_bits1(&s->gb) != 0) {
skip_bits(&s->gb, 8);
if (get_bits_left(&s->gb) <= 0)
return AVERROR_INVALIDDATA;
}

if(s->h263_slice_structured){


Loading…
Cancel
Save