diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-08-21 18:34:04 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-08-21 18:35:58 +0000 |
commit | 9a5aa2c48e3583b549158afe1429b8f25b77e622 (patch) | |
tree | 8cab85a7432d859c5349f73cb6c74eaffaf4009b | |
parent | ffa18de2e6ccceec6144679fad9390b2034b3a66 (diff) | |
download | ffmpeg-9a5aa2c48e3583b549158afe1429b8f25b77e622.tar.gz |
avcodec/mdec: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/mdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index bd1966ebfb..9211fe70d4 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -177,7 +177,8 @@ static int decode_frame(AVCodecContext *avctx, a->bitstream_buffer[i] = buf[i + 1]; a->bitstream_buffer[i + 1] = buf[i]; } - init_get_bits(&a->gb, a->bitstream_buffer, buf_size * 8); + if ((ret = init_get_bits8(&a->gb, a->bitstream_buffer, buf_size)) < 0) + return ret; /* skip over 4 preamble bytes in stream (typically 0xXX 0xXX 0x00 0x38) */ skip_bits(&a->gb, 32); |