diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-01-16 19:51:39 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-01-16 20:56:14 +0000 |
commit | 641bbd967119e53a8eb3bbfc7b48ed9f6f1f1ef9 (patch) | |
tree | 05fb239c1cc013454f8247d7bbe60db5bedf7195 | |
parent | 1191db31c1ed02255590ee5e9c0c836589f6508a (diff) | |
download | ffmpeg-641bbd967119e53a8eb3bbfc7b48ed9f6f1f1ef9.tar.gz |
vima: switch to init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/vima.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vima.c b/libavcodec/vima.c index f823cb37e7..9019535083 100644 --- a/libavcodec/vima.c +++ b/libavcodec/vima.c @@ -145,7 +145,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, if (pkt->size < 13) return AVERROR_INVALIDDATA; - init_get_bits(&gb, pkt->data, pkt->size * 8); + if ((ret = init_get_bits8(&gb, pkt->data, pkt->size)) < 0) + return ret; samples = get_bits_long(&gb, 32); if (samples == 0xffffffff) { |