diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-02-07 17:16:14 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-02-07 17:16:14 +0000 |
commit | 134e8c73eaaf27a4960a558c14225a9c590e72cf (patch) | |
tree | da447b0120864ef37a9b484053b99ef5699aa148 /libavcodec/faxcompr.c | |
parent | 97996eff4f2631fa5fdb6bc76a32b58d8b9f7611 (diff) | |
download | ffmpeg-134e8c73eaaf27a4960a558c14225a9c590e72cf.tar.gz |
avcodec/faxcompr: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/faxcompr.c')
-rw-r--r-- | libavcodec/faxcompr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c index 155f78da66..44d27219ff 100644 --- a/libavcodec/faxcompr.c +++ b/libavcodec/faxcompr.c @@ -296,7 +296,8 @@ int ff_ccitt_unpack(AVCodecContext *avctx, const uint8_t *src, int srcsize, ref[0] = avctx->width; ref[1] = 0; ref[2] = 0; - init_get_bits(&gb, src, srcsize * 8); + if ((ret = init_get_bits8(&gb, src, srcsize)) < 0) + return ret; has_eol = show_bits(&gb, 12) == 1 || show_bits(&gb, 16) == 1; for (j = 0; j < height; j++) { |