diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-10-29 13:28:33 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-10-30 11:04:06 +0000 |
commit | 1de8dfcbc494e470e5caf35e1cd0650e834d8f7e (patch) | |
tree | 7d2a94012bb8cae62d1ebbe6c1992484348316c1 /libavcodec/binkaudio.c | |
parent | 2820562935e780acc446e85ce26f03ecbb09b8bd (diff) | |
download | ffmpeg-1de8dfcbc494e470e5caf35e1cd0650e834d8f7e.tar.gz |
avcodec/binkaudio: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/binkaudio.c')
-rw-r--r-- | libavcodec/binkaudio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/binkaudio.c b/libavcodec/binkaudio.c index b7ad41897f..8db4533221 100644 --- a/libavcodec/binkaudio.c +++ b/libavcodec/binkaudio.c @@ -308,7 +308,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, return AVERROR(ENOMEM); s->packet_buffer = buf; memcpy(s->packet_buffer, avpkt->data, avpkt->size); - init_get_bits(gb, s->packet_buffer, avpkt->size * 8); + if ((ret = init_get_bits8(gb, s->packet_buffer, avpkt->size)) < 0) + return ret; consumed = avpkt->size; /* skip reported size */ |