summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_ciescope.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/vf_ciescope.c')
-rw-r--r--libavfilter/vf_ciescope.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/vf_ciescope.c b/libavfilter/vf_ciescope.c
index 450c17b..7c0cfed 100644
--- a/libavfilter/vf_ciescope.c
+++ b/libavfilter/vf_ciescope.c
@@ -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++) {
OpenPOWER on IntegriCloud