]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/aac_adtstoasc_bsf.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / aac_adtstoasc_bsf.c
index 6558c0280f97b4df9ced8fe6c4588804e32eced3..2e14b1a0b67b9a50150e13cd7a6a015e3d3c8468 100644 (file)
@@ -72,7 +72,7 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc,
         int            pce_size = 0;
         uint8_t        pce_data[MAX_PCE_SIZE];
         if (!hdr.chan_config) {
-            init_get_bits(&gb, buf, buf_size);
+            init_get_bits(&gb, buf, buf_size * 8);
             if (get_bits(&gb, 3) != 5) {
                 av_log_missing_feature(avctx, "PCE based channel configuration, where the PCE is not the first syntax element is", 0);
                 return -1;