summaryrefslogtreecommitdiff
path: root/libavcodec/nuv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-01-11 02:15:08 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-01-12 02:06:09 +0100
commite94288c4932e40d99c00557add2a164d3601c1ed (patch)
treebce4615088f06b5bb6eb0e35e6b84a8c29dc0e97 /libavcodec/nuv.c
parentc65c4ce773656c41d58ab6d26bea6e1a97ee2751 (diff)
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@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/nuv.c')
-rw-r--r--libavcodec/nuv.c1
1 files changed, 1 insertions, 0 deletions
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,
};