[FFmpeg-cvslog] avcodec/binkaudio: use init_get_bits8()
Paul B Mahol
git at videolan.org
Wed Oct 30 12:41:52 CET 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Oct 29 13:28:33 2013 +0000| [1de8dfcbc494e470e5caf35e1cd0650e834d8f7e] | committer: Paul B Mahol
avcodec/binkaudio: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1de8dfcbc494e470e5caf35e1cd0650e834d8f7e
---
libavcodec/binkaudio.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/binkaudio.c b/libavcodec/binkaudio.c
index b7ad418..8db4533 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 */
More information about the ffmpeg-cvslog
mailing list