aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmanuel Czirai <zazdxscf@gmail.com>2015-08-03 00:58:46 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-19 03:51:37 +0100
commitec328dc4618201d63c521049d351a162025de04b (patch)
treeeb825e58b8925e545c4dbc3db31fda7320bf45cf
parentda7d36ef8037357a0be8630ba6c9e9622f249412 (diff)
downloadffmpeg-ec328dc4618201d63c521049d351a162025de04b.tar.gz
libavcodec/aacdec_template: Use init_get_bits8() in aac_decode_frame()
related to ticket4749 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 7ab1c57a64b629455805d7fa74a8a20c689fc1f6) Conflicts: libavcodec/aacdec_template.c (cherry picked from commit dabb6dd98af52a22a922bca4a9196acf68b084dd) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/aacdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index 165ac8496f..2fb26ba198 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -3148,7 +3148,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) {