Commit c7ded42d authored by Timo Rothenpieler's avatar Timo Rothenpieler

avfilter/vf_premultiply: fix memory-leak on failure

Fixes CID #1416352
parent 284b4326
...@@ -607,9 +607,10 @@ static int activate(AVFilterContext *ctx) ...@@ -607,9 +607,10 @@ static int activate(AVFilterContext *ctx)
int64_t pts; int64_t pts;
if ((ret = ff_inlink_consume_frame(ctx->inputs[0], &frame)) > 0) { if ((ret = ff_inlink_consume_frame(ctx->inputs[0], &frame)) > 0) {
if ((ret = filter_frame(ctx, &out, frame, frame)) < 0) ret = filter_frame(ctx, &out, frame, frame);
return ret;
av_frame_free(&frame); av_frame_free(&frame);
if (ret < 0)
return ret;
ret = ff_filter_frame(ctx->outputs[0], out); ret = ff_filter_frame(ctx->outputs[0], out);
} }
if (ret < 0) { if (ret < 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment