aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aacdec_template.c
diff options
context:
space:
mode:
authorEmanuel Czirai <zazdxscf@gmail.com>2015-08-03 00:58:46 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-03 01:18:33 +0200
commit7ab1c57a64b629455805d7fa74a8a20c689fc1f6 (patch)
treefd524fb7ee33580695fc59730f9528f91f4c1917 /libavcodec/aacdec_template.c
parent0508657f42edb511d855b0401e8cf501c0fc61eb (diff)
downloadffmpeg-7ab1c57a64b629455805d7fa74a8a20c689fc1f6.tar.gz
libavcodec/aacdec_template: Use init_get_bits8() in aac_decode_frame()
related to ticket4749 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/aacdec_template.c')
-rw-r--r--libavcodec/aacdec_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacdec_template.c b/libavcodec/aacdec_template.c
index 2f270bcb19..1f3ef0ea38 100644
--- a/libavcodec/aacdec_template.c
+++ b/libavcodec/aacdec_template.c
@@ -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) {