avcodec/aacdec: Add FF_CODEC_CAP_INIT_CLEANUP
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 22 Aug 2019 21:43:48 +0000 (23:43 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 23 Aug 2019 12:38:42 +0000 (14:38 +0200)
commit48b86dd8a6bf50a7d8ab0343a1535bc4b0b5b196
tree336d06f06f147d69497bdf8322ef77d5ce2cd1f4
parentc9fcf881e69e34a2acfa2bb7052ca200cab16740
avcodec/aacdec: Add FF_CODEC_CAP_INIT_CLEANUP

Fixes: memleaks
Fixes: 16289/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer-5200695692623872

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacdec.c