diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-02-03 15:31:53 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-02-04 09:45:41 +0000 |
commit | 1634d2bcd1410ccb60ebbade41eeeaaa9e48798c (patch) | |
tree | 2800645865ef4b7e887cf7cd5ff826fc605cadc8 /libavcodec/on2avc.c | |
parent | 49f825713536f89823f417b21a2a6fcec99704a6 (diff) | |
download | ffmpeg-1634d2bcd1410ccb60ebbade41eeeaaa9e48798c.tar.gz |
avcodec/on2avc: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/on2avc.c')
-rw-r--r-- | libavcodec/on2avc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/on2avc.c b/libavcodec/on2avc.c index 9bf5e87546..4ad6eca4e4 100644 --- a/libavcodec/on2avc.c +++ b/libavcodec/on2avc.c @@ -795,7 +795,9 @@ static int on2avc_decode_subframe(On2AVCContext *c, const uint8_t *buf, GetBitContext gb; int i, ret; - init_get_bits(&gb, buf, buf_size * 8); + if ((ret = init_get_bits8(&gb, buf, buf_size)) < 0) + return ret; + if (get_bits1(&gb)) { av_log(c->avctx, AV_LOG_ERROR, "enh bit set\n"); return AVERROR_INVALIDDATA; |