diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-02-03 18:49:34 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-02-04 12:45:41 +0300 |
commit | 63cb546f0a55ca0353880e6c9b3735706b0abc23 (patch) | |
tree | 1b2103208222a191441c759c2003424ecb6d748d /libavcodec/wnv1.c | |
parent | 1634d2bcd1410ccb60ebbade41eeeaaa9e48798c (diff) |
avcodec/wnv1: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/wnv1.c')
-rw-r--r-- | libavcodec/wnv1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/wnv1.c b/libavcodec/wnv1.c index 99aee3cd1c..fb9e9cfeef 100644 --- a/libavcodec/wnv1.c +++ b/libavcodec/wnv1.c @@ -88,7 +88,9 @@ static int decode_frame(AVCodecContext *avctx, for (i = 8; i < buf_size; i++) rbuf[i] = ff_reverse[buf[i]]; - init_get_bits(&l->gb, rbuf + 8, (buf_size - 8) * 8); + + if ((ret = init_get_bits8(&l->gb, rbuf + 8, buf_size - 8)) < 0) + return ret; if (buf[2] >> 4 == 6) l->shift = 2; |