From 02aa0701ae0dc2def8db640c9e3c06dc1b5de70c Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Sun, 3 Jan 2016 15:44:42 +0100 Subject: lavfi: make filter_frame non-recursive. A lot of changes happen at the same time: - Add a framequeue fifo to AVFilterLink. - split AVFilterLink.status into status_in and status_out: requires changes to the few filters and programs that use it directly (f_interleave, split, filtfmts). - Add a field ready to AVFilterContext, marking when the filter is ready and its activation priority. - Add flags to mark blocked links. - Change ff_filter_frame() to enqueue the frame. - Change all filtering functions to update the ready field and the blocked flags. - Update ff_filter_graph_run_once() to use the ready field. - buffersrc: always push the frame immediately. --- libavfilter/split.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libavfilter/split.c') diff --git a/libavfilter/split.c b/libavfilter/split.c index 6630087a58..b85a221353 100644 --- a/libavfilter/split.c +++ b/libavfilter/split.c @@ -30,6 +30,9 @@ #include "libavutil/mem.h" #include "libavutil/opt.h" +#define FF_INTERNAL_FIELDS 1 +#include "framequeue.h" + #include "avfilter.h" #include "audio.h" #include "formats.h" @@ -78,7 +81,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) for (i = 0; i < ctx->nb_outputs; i++) { AVFrame *buf_out; - if (ctx->outputs[i]->status) + if (ctx->outputs[i]->status_in) continue; buf_out = av_frame_clone(frame); if (!buf_out) { -- cgit v1.2.3