avcodec/g729dec: Avoid one multiply by using init_get_bits8()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Nov 2019 20:32:09 +0000 (21:32 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 1 Dec 2019 16:17:04 +0000 (17:17 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/g729dec.c

index 5257be6..c181f23 100644 (file)
@@ -461,7 +461,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);