[FFmpeg-devel] [PATCH 5/7] avcodec/g729dec: Avoid one multiply by using init_get_bits8()
Michael Niedermayer
michael at niedermayer.cc
Sun Nov 10 00:39:05 EET 2019
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavcodec/g729dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c
index 4d70cb6eba..75e422814c 100644
--- a/libavcodec/g729dec.c
+++ b/libavcodec/g729dec.c
@@ -458,7 +458,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr,
frame_erasure |= buf[i];
frame_erasure = !frame_erasure;
- init_get_bits(&gb, buf, 8*format->block_size);
+ init_get_bits8(&gb, buf, format->block_size);
ma_predictor = get_bits(&gb, 1);
quantizer_1st = get_bits(&gb, VQ_1ST_BITS);
--
2.23.0
More information about the ffmpeg-devel
mailing list