git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f64f60
)
avcodec/alsdec: Add FF_CODEC_CAP_INIT_CLEANUP
author
Michael Niedermayer
<michael@niedermayer.cc>
Thu, 20 Jun 2019 22:47:19 +0000
(
00:47
+0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 6 Jul 2019 20:50:21 +0000
(22:50 +0200)
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>
libavcodec/alsdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/alsdec.c
b/libavcodec/alsdec.c
index
e38d7b2
..
5eb2a58
100644
(file)
--- 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,
};