Commit 1de8dfcb authored by Paul B Mahol's avatar Paul B Mahol

avcodec/binkaudio: use init_get_bits8()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 28205629
...@@ -308,7 +308,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, ...@@ -308,7 +308,8 @@ static int decode_frame(AVCodecContext *avctx, void *data,
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
s->packet_buffer = buf; s->packet_buffer = buf;
memcpy(s->packet_buffer, avpkt->data, avpkt->size); memcpy(s->packet_buffer, avpkt->data, avpkt->size);
init_get_bits(gb, s->packet_buffer, avpkt->size * 8); if ((ret = init_get_bits8(gb, s->packet_buffer, avpkt->size)) < 0)
return ret;
consumed = avpkt->size; consumed = avpkt->size;
/* skip reported size */ /* skip reported size */
......
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