diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-04-16 16:58:32 +0200 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-04-19 23:45:35 +0100 |
commit | 09bd7ddf2002562befa15a2a4d065b79ad14ed8e (patch) | |
tree | c560d95e8bedfc771cfe176146d95686c19d0ecd /libavcodec/aacdec.c | |
parent | 3d71b1f8f09fccea7158e868fb9bd81b81205449 (diff) | |
download | ffmpeg-09bd7ddf2002562befa15a2a4d065b79ad14ed8e.tar.gz |
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: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libavcodec/aacdec.c')
-rw-r--r-- | libavcodec/aacdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c index ebeda9b7a5..7b306c9c41 100644 --- a/libavcodec/aacdec.c +++ b/libavcodec/aacdec.c @@ -819,7 +819,7 @@ static int decode_eld_specific_config(AACContext *ac, AVCodecContext *avctx, if (len == 15 + 255) len += get_bits(gb, 16); 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; } skip_bits_long(gb, 8 * len); |