diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-06-21 00:47:19 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-07-06 23:09:45 +0200 |
commit | c34512371e1d09a1862a3c7f53a17b3e9198729a (patch) | |
tree | 09432f3cceffc919c84e50f57b756e2b6a9cfbf0 /libavcodec/alsdec.c | |
parent | fa2dbcfd8f4b1ed7b62c464fb509a6b3b9bf4ab2 (diff) | |
download | ffmpeg-c34512371e1d09a1862a3c7f53a17b3e9198729a.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>
Diffstat (limited to 'libavcodec/alsdec.c')
-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 e38d7b21d3..5eb2a58aaf 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -2127,7 +2127,6 @@ static av_cold int decode_init(AVCodecContext *avctx) return 0; fail: - decode_end(avctx); return ret; } @@ -2153,4 +2152,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, }; |