[FFmpeg-cvslog] avcodec/wmavoice: use init_get_bits8()
Paul B Mahol
git at videolan.org
Sun Dec 23 22:17:10 EET 2018
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Dec 23 21:06:22 2018 +0100| [c4a05ae65c3903c9be3b187213fd9fa41c660d6d] | committer: Paul B Mahol
avcodec/wmavoice: use init_get_bits8()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c4a05ae65c3903c9be3b187213fd9fa41c660d6d
---
libavcodec/wmavoice.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c
index 444e303b0d..68bb65986e 100644
--- a/libavcodec/wmavoice.c
+++ b/libavcodec/wmavoice.c
@@ -1906,7 +1906,7 @@ static int wmavoice_decode_packet(AVCodecContext *ctx, void *data,
* in a single "muxer" packet, so we artificially emulate that by
* capping the packet size at 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
* a new packet or a packet of which we already read the packet header
More information about the ffmpeg-cvslog
mailing list