avformat/latmenc: use init_get_bits8()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 5 Aug 2013 08:12:46 +0000 (10:12 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 5 Aug 2013 08:12:46 +0000 (10:12 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/latmenc.c

index 9dfb4e4fab2e0b6f88dfaca8acfda430f3b95b1d..b3430d785d37d00fe5adb8365a9a7c9a72456247 100644 (file)
@@ -124,7 +124,7 @@ static void latm_write_frame_header(AVFormatContext *s, PutBitContext *bs)
 
             if (!ctx->channel_conf) {
                 GetBitContext gb;
-                init_get_bits(&gb, avctx->extradata, avctx->extradata_size * 8);
+                init_get_bits8(&gb, avctx->extradata, avctx->extradata_size);
                 skip_bits_long(&gb, ctx->off + 3);
                 avpriv_copy_pce_data(bs, &gb);
             }