diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-01-28 22:47:30 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-01-28 22:47:30 +0000 |
commit | 9efceaf1f788e997fbf9a72ee6f90c52374eaaea (patch) | |
tree | ea14638c7359c951255dc7c976903360e3b3dbe1 /libavcodec | |
parent | 3939b790f2eb1d747a1ca80c4db4e2a145812af4 (diff) | |
download | ffmpeg-9efceaf1f788e997fbf9a72ee6f90c52374eaaea.tar.gz |
takdec: switch to init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/takdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c index 86c1a7dda5..af6454304c 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; |