diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-05-29 12:27:41 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-05-29 12:30:07 +0000 |
commit | 7469be099e90314fac4188f7140d14e730615975 (patch) | |
tree | 6a5ea5c37e9a27f18f44335f479a3370df7e1560 /libavcodec | |
parent | 96db307b3d4ebbf148a666107cc4f707c78486c6 (diff) | |
download | ffmpeg-7469be099e90314fac4188f7140d14e730615975.tar.gz |
lavc/tta: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/tta.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/tta.c b/libavcodec/tta.c index cd00b88c0c..fd796d9243 100644 --- a/libavcodec/tta.c +++ b/libavcodec/tta.c @@ -329,7 +329,8 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data, return AVERROR_INVALIDDATA; } - init_get_bits(&s->gb, buf, buf_size*8); + if ((ret = init_get_bits8(&s->gb, avpkt->data, avpkt->size)) < 0) + return ret; /* get output buffer */ frame->nb_samples = framelen; |