]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/adtsenc.c
adxenc: use BLOCK_SIZE and BLOCK_SAMPLES macros
[ffmpeg] / libavformat / adtsenc.c
index 55fece5dd674120edf67e47893c5076b2bec9cf2..ef3d8e2c21c2eb41fd70691e69544094a2f80950 100644 (file)
@@ -37,7 +37,7 @@ int ff_adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, uint8_t *buf
     int off;
 
     init_get_bits(&gb, buf, size * 8);
-    off = avpriv_mpeg4audio_get_config(&m4ac, buf, size);
+    off = avpriv_mpeg4audio_get_config(&m4ac, buf, size * 8, 1);
     if (off < 0)
         return off;
     skip_bits_long(&gb, off);