aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-12-23 20:49:19 +0100
committerPaul B Mahol <onemda@gmail.com>2018-12-23 20:49:19 +0100
commitf89919d4fb7c79f1efa96a2c1b10a3a35941cc40 (patch)
treee84fd80018c2a522226cf83f1b08fcb96d414f9d
parent30a7a81cdc2ee2eac6d3271439c43f11b7327b3e (diff)
downloadffmpeg-f89919d4fb7c79f1efa96a2c1b10a3a35941cc40.tar.gz
avcodec/fic: use init_get_bits8()
-rw-r--r--libavcodec/fic.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/fic.c b/libavcodec/fic.c
index 3e36346358..8833536330 100644
--- a/libavcodec/fic.c
+++ b/libavcodec/fic.c
@@ -173,9 +173,11 @@ static int fic_decode_slice(AVCodecContext *avctx, void *tdata)
int slice_h = tctx->slice_h;
int src_size = tctx->src_size;
int y_off = tctx->y_off;
- int x, y, p;
+ int x, y, p, ret;
- init_get_bits(&gb, src, src_size * 8);
+ ret = init_get_bits8(&gb, src, src_size);
+ if (ret < 0)
+ return ret;
for (p = 0; p < 3; p++) {
int stride = ctx->frame->linesize[p];