diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-02-03 20:36:23 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-02-03 20:36:23 +0100 |
commit | c331be21c48a8d273feb0c0131dc524d2c2fc3da (patch) | |
tree | df169d9f655d6e2fc9f5e51944530f9986d81b04 /libavcodec | |
parent | 2b707018bca80496d52ccfd2777af98cc0a21546 (diff) | |
download | ffmpeg-streaming-c331be21c48a8d273feb0c0131dc524d2c2fc3da.zip ffmpeg-streaming-c331be21c48a8d273feb0c0131dc524d2c2fc3da.tar.gz |
avcodec/ivi: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ivi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/ivi.c b/libavcodec/ivi.c index 70f08a8..ad48abb 100644 --- a/libavcodec/ivi.c +++ b/libavcodec/ivi.c @@ -1060,7 +1060,9 @@ int ff_ivi_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, int buf_size = avpkt->size; 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_size = buf_size; |