summaryrefslogtreecommitdiffstats
path: root/libavcodec/ivi.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-06 00:08:38 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-06 00:33:19 +0200
commit12dea8a5a15343e9c404376c40ca8a1cc9d1479e (patch)
treeefc59333d99371e425f25e35c0a8be0ecaba67f7 /libavcodec/ivi.c
parenta8ad83b793e883b8c6d114f81073a4e40c0308a3 (diff)
downloadffmpeg-streaming-12dea8a5a15343e9c404376c40ca8a1cc9d1479e.zip
ffmpeg-streaming-12dea8a5a15343e9c404376c40ca8a1cc9d1479e.tar.gz
avcodec/ivi: Free custom blk_vlc
Fixes memleak Fixes: 1351/clusterfuzz-testcase-minimized-5861971645693952 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/ivi.c')
-rw-r--r--libavcodec/ivi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/ivi.c b/libavcodec/ivi.c
index c02addf..866f066 100644
--- a/libavcodec/ivi.c
+++ b/libavcodec/ivi.c
@@ -1206,6 +1206,9 @@ av_cold int ff_ivi_decode_close(AVCodecContext *avctx)
if (ctx->mb_vlc.cust_tab.table)
ff_free_vlc(&ctx->mb_vlc.cust_tab);
+ if (ctx->blk_vlc.cust_tab.table)
+ ff_free_vlc(&ctx->blk_vlc.cust_tab);
+
av_frame_free(&ctx->p_frame);
return 0;
OpenPOWER on IntegriCloud