mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/binkaudio: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
2820562935
commit
1de8dfcbc4
@ -308,7 +308,8 @@ static int decode_frame(AVCodecContext *avctx, void *data,
|
||||
return AVERROR(ENOMEM);
|
||||
s->packet_buffer = buf;
|
||||
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;
|
||||
|
||||
/* skip reported size */
|
||||
|
Loading…
Reference in New Issue
Block a user