Commit 255be073 authored by Stefano Sabatini's avatar Stefano Sabatini

lavfi/alphamerge: fix leak introduced in 217163eb

parent 49435d38
......@@ -147,7 +147,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *buf)
merge->frame_requested = 0;
draw_frame(ctx, main_buf, alpha_buf);
ff_filter_frame(ctx->outputs[0], avfilter_ref_buffer(main_buf, ~0));
ff_filter_frame(ctx->outputs[0], main_buf);
avfilter_unref_buffer(alpha_buf);
}
return 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