lavc/tta: use init_get_bits8()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2013-05-29 12:27:41 +00:00
parent 96db307b3d
commit 7469be099e
1 changed files with 2 additions and 1 deletions

View File

@ -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;