mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
avcodec/wmavoice: use init_get_bits8()
This commit is contained in:
parent
e483606d44
commit
c4a05ae65c
@ -1906,7 +1906,7 @@ static int wmavoice_decode_packet(AVCodecContext *ctx, void *data,
|
|||||||
* in a single "muxer" packet, so we artificially emulate that by
|
* in a single "muxer" packet, so we artificially emulate that by
|
||||||
* capping the packet size at ctx->block_align. */
|
* capping the packet size at ctx->block_align. */
|
||||||
for (size = avpkt->size; size > ctx->block_align; size -= ctx->block_align);
|
for (size = avpkt->size; size > ctx->block_align; size -= ctx->block_align);
|
||||||
init_get_bits(&s->gb, avpkt->data, size << 3);
|
init_get_bits8(&s->gb, avpkt->data, size);
|
||||||
|
|
||||||
/* size == ctx->block_align is used to indicate whether we are dealing with
|
/* size == ctx->block_align is used to indicate whether we are dealing with
|
||||||
* a new packet or a packet of which we already read the packet header
|
* a new packet or a packet of which we already read the packet header
|
||||||
|
Loading…
x
Reference in New Issue
Block a user