From 7469be099e90314fac4188f7140d14e730615975 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 29 May 2013 12:27:41 +0000 Subject: [PATCH] lavc/tta: use init_get_bits8() Signed-off-by: Paul B Mahol --- libavcodec/tta.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;