avfilter/vf_perspective: Free out AVFrame on error

Fixes memleak
Fixes part of CID1197065

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2017-02-03 19:37:18 +01:00
parent 21a07ac191
commit 19f567208c
1 changed files with 1 additions and 0 deletions

View File

@ -463,6 +463,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
if (s->eval_mode == EVAL_MODE_FRAME) {
if ((ret = calc_persp_luts(ctx, inlink)) < 0) {
av_frame_free(&out);
return ret;
}
}