avcodec/nuv: add FF_CODEC_CAP_INIT_CLEANUP
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 11 Jan 2019 01:15:08 +0000 (02:15 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 12 Jan 2019 01:06:09 +0000 (02:06 +0100)
commite94288c4932e40d99c00557add2a164d3601c1ed
treebce4615088f06b5bb6eb0e35e6b84a8c29dc0e97
parentc65c4ce773656c41d58ab6d26bea6e1a97ee2751
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>
libavcodec/nuv.c