Commit 7ab1c57a authored by Emanuel Czirai's avatar Emanuel Czirai Committed by Michael Niedermayer

libavcodec/aacdec_template: Use init_get_bits8() in aac_decode_frame()

related to ticket4749
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 0508657f
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment