libavcodec/aacdec_template: Use init_get_bits8() in aac_decode_frame()
authorEmanuel Czirai <zazdxscf@gmail.com>
Sun, 2 Aug 2015 22:58:46 +0000 (00:58 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 2 Aug 2015 23:18:33 +0000 (01:18 +0200)
related to ticket4749

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacdec_template.c

index 2f270bc..1f3ef0e 100644 (file)
@@ -3122,7 +3122,7 @@ static int aac_decode_frame(AVCodecContext *avctx, void *data,
     if (INT_MAX / 8 <= buf_size)
         return AVERROR_INVALIDDATA;
 
-    if ((err = init_get_bits(&gb, buf, buf_size * 8)) < 0)
+    if ((err = init_get_bits8(&gb, buf, buf_size)) < 0)
         return err;
 
     switch (ac->oc[1].m4ac.object_type) {