mirror of https://git.ffmpeg.org/ffmpeg.git
lavc/tta: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
96db307b3d
commit
7469be099e
|
@ -329,7 +329,8 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data,
|
||||||
return AVERROR_INVALIDDATA;
|
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 */
|
/* get output buffer */
|
||||||
frame->nb_samples = framelen;
|
frame->nb_samples = framelen;
|
||||||
|
|
Loading…
Reference in New Issue