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>
This commit is contained in:
Michael Niedermayer 2017-05-06 00:08:38 +02:00
parent a8ad83b793
commit 12dea8a5a1
1 changed files with 3 additions and 0 deletions

View File

@ -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;