Commit 7469be09 authored by Paul B Mahol's avatar Paul B Mahol

lavc/tta: use init_get_bits8()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 96db307b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment