diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-06-21 00:47:19 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-07-01 12:11:55 +0200 |
commit | bf0af79cbcd713a503a24dc0c1f4e35a410252f1 (patch) | |
tree | 0d01fcd1d9c032a3c6a689eff168b48befdf5c8b | |
parent | 213304972e459148c54c707943748a9062d60f5b (diff) | |
download | ffmpeg-bf0af79cbcd713a503a24dc0c1f4e35a410252f1.tar.gz |
avcodec/alsdec: Add FF_CODEC_CAP_INIT_CLEANUP
Fixes: multiple memleaks
Fixes: 15293/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5642409288925184
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit b7b6ddd59693008c35b3247496ecc946331d0856)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/alsdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 203d368b85..84eddffc58 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -2133,7 +2133,6 @@ static av_cold int decode_init(AVCodecContext *avctx) return 0; fail: - decode_end(avctx); return ret; } @@ -2159,4 +2158,5 @@ AVCodec ff_als_decoder = { .decode = decode_frame, .flush = flush, .capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, }; |