lavfi/alphamerge: fix leak introduced in 217163eb
authorStefano Sabatini <stefasab@gmail.com>
Sun, 2 Dec 2012 17:03:04 +0000 (18:03 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Sun, 2 Dec 2012 17:04:57 +0000 (18:04 +0100)
libavfilter/vf_alphamerge.c

index bb5b961..f3800db 100644 (file)
@@ -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;