avcodec/aacdec_template: Pass AVCodecContext seperatly to set_default_channel_config()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 15 Apr 2020 18:47:07 +0000 (20:47 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 May 2020 23:09:13 +0000 (01:09 +0200)
commit785f194cd4f7d8cd9a1742c73c10a09f6006f890
tree5d5111b88a7fe4b402a0e92fb16dd6054abcde98
parent97c78caf3e8f7ec4df3d3123b5e8d0e7541319e6
avcodec/aacdec_template: Pass AVCodecContext seperatly to set_default_channel_config()

Regression since 4d9b9c5e4637ac15205467f16fcac92a28e18f18
Fixes: Null pointer dereference
Fixes: 21642/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer-5670101358739456

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacdec_template.c