Commit 09bd7ddf authored by Andreas Cadhalpun's avatar Andreas Cadhalpun Committed by Vittorio Giovara

aacdec: consistently use avctx for logging in decode_eld_specific_config

ac may be NULL and then accessing ac->avctx results in a segmentation fault.
Signed-off-by: 's avatarAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
parent 3d71b1f8
...@@ -819,7 +819,7 @@ static int decode_eld_specific_config(AACContext *ac, AVCodecContext *avctx, ...@@ -819,7 +819,7 @@ static int decode_eld_specific_config(AACContext *ac, AVCodecContext *avctx,
if (len == 15 + 255) if (len == 15 + 255)
len += get_bits(gb, 16); len += get_bits(gb, 16);
if (get_bits_left(gb) < len * 8 + 4) { if (get_bits_left(gb) < len * 8 + 4) {
av_log(ac->avctx, AV_LOG_ERROR, overread_err); av_log(avctx, AV_LOG_ERROR, overread_err);
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
skip_bits_long(gb, 8 * len); skip_bits_long(gb, 8 * len);
......
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