mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-05 23:58:59 +02:00
avcodec/ivi: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
2b707018bc
commit
c331be21c4
@ -1060,7 +1060,9 @@ int ff_ivi_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
|
|||||||
int buf_size = avpkt->size;
|
int buf_size = avpkt->size;
|
||||||
int result, p, b;
|
int result, p, b;
|
||||||
|
|
||||||
init_get_bits(&ctx->gb, buf, buf_size * 8);
|
result = init_get_bits8(&ctx->gb, buf, buf_size);
|
||||||
|
if (result < 0)
|
||||||
|
return result;
|
||||||
ctx->frame_data = buf;
|
ctx->frame_data = buf;
|
||||||
ctx->frame_size = buf_size;
|
ctx->frame_size = buf_size;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user