You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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:
@@ -463,6 +463,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
|||||||
|
|
||||||
if (s->eval_mode == EVAL_MODE_FRAME) {
|
if (s->eval_mode == EVAL_MODE_FRAME) {
|
||||||
if ((ret = calc_persp_luts(ctx, inlink)) < 0) {
|
if ((ret = calc_persp_luts(ctx, inlink)) < 0) {
|
||||||
|
av_frame_free(&out);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user