1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vf_ciescope: 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 c331be21c4
commit 3edbc2408b

View File

@ -1369,8 +1369,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if (!s->background) {
ret = draw_background(ctx);
if (ret < 0)
if (ret < 0) {
av_frame_free(&out);
return ret;
}
s->background = 1;
}
for (y = 0; y < outlink->h; y++) {