[FFmpeg-cvslog] takdec: switch to init_get_bits8()
Paul B Mahol
git at videolan.org
Mon Jan 28 23:50:42 CET 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Jan 28 22:47:30 2013 +0000| [9efceaf1f788e997fbf9a72ee6f90c52374eaaea] | committer: Paul B Mahol
takdec: switch to init_get_bits8()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9efceaf1f788e997fbf9a72ee6f90c52374eaaea
---
libavcodec/takdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c
index 86c1a7d..af64543 100644
--- a/libavcodec/takdec.c
+++ b/libavcodec/takdec.c
@@ -693,7 +693,8 @@ static int tak_decode_frame(AVCodecContext *avctx, void *data,
if (pkt->size < TAK_MIN_FRAME_HEADER_BYTES)
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;
if ((ret = ff_tak_decode_frame_header(avctx, gb, &s->ti, 0)) < 0)
return ret;
More information about the ffmpeg-cvslog
mailing list