[FFmpeg-cvslog] avcodec/nuv: add FF_CODEC_CAP_INIT_CLEANUP
Michael Niedermayer
git at videolan.org
Sat Jan 12 03:25:20 EET 2019
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Jan 11 02:15:08 2019 +0100| [e94288c4932e40d99c00557add2a164d3601c1ed] | committer: Michael Niedermayer
avcodec/nuv: add FF_CODEC_CAP_INIT_CLEANUP
Fixes: memleak
Fixes: 12244/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_NUV_fuzzer-5099447273390080
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e94288c4932e40d99c00557add2a164d3601c1ed
---
libavcodec/nuv.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c
index 32ed65899b..75b14bce5b 100644
--- a/libavcodec/nuv.c
+++ b/libavcodec/nuv.c
@@ -365,4 +365,5 @@ AVCodec ff_nuv_decoder = {
.close = decode_end,
.decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
};
More information about the ffmpeg-cvslog
mailing list