mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/asvdec: Use init_get_bits8()
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
2a8edb1ad3
commit
4f3edcdcbc
|
@ -235,7 +235,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
|
|||
a->bitstream_buffer[i] = ff_reverse[buf[i]];
|
||||
}
|
||||
|
||||
init_get_bits(&a->gb, a->bitstream_buffer, buf_size * 8);
|
||||
ret = init_get_bits8(&a->gb, a->bitstream_buffer, buf_size);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
for (mb_y = 0; mb_y < a->mb_height2; mb_y++) {
|
||||
for (mb_x = 0; mb_x < a->mb_width2; mb_x++) {
|
||||
|
|
Loading…
Reference in New Issue