Commit 9a5aa2c4 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/mdec: use init_get_bits8()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent ffa18de2
...@@ -177,7 +177,8 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -177,7 +177,8 @@ static int decode_frame(AVCodecContext *avctx,
a->bitstream_buffer[i] = buf[i + 1]; a->bitstream_buffer[i] = buf[i + 1];
a->bitstream_buffer[i + 1] = buf[i]; 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 over 4 preamble bytes in stream (typically 0xXX 0xXX 0x00 0x38) */
skip_bits(&a->gb, 32); skip_bits(&a->gb, 32);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment