You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
lavfi/avfilter: move AVFilterContext.ready to FFFilterContext
This field is private to the generic filtering code.
This commit is contained in:
@@ -1470,15 +1470,19 @@ int avfilter_graph_request_oldest(AVFilterGraph *graph)
|
||||
|
||||
int ff_filter_graph_run_once(AVFilterGraph *graph)
|
||||
{
|
||||
AVFilterContext *filter;
|
||||
FFFilterContext *ctxi;
|
||||
unsigned i;
|
||||
|
||||
av_assert0(graph->nb_filters);
|
||||
filter = graph->filters[0];
|
||||
for (i = 1; i < graph->nb_filters; i++)
|
||||
if (graph->filters[i]->ready > filter->ready)
|
||||
filter = graph->filters[i];
|
||||
if (!filter->ready)
|
||||
ctxi = fffilterctx(graph->filters[0]);
|
||||
for (i = 1; i < graph->nb_filters; i++) {
|
||||
FFFilterContext *ctxi_other = fffilterctx(graph->filters[i]);
|
||||
|
||||
if (ctxi_other->ready > ctxi->ready)
|
||||
ctxi = ctxi_other;
|
||||
}
|
||||
|
||||
if (!ctxi->ready)
|
||||
return AVERROR(EAGAIN);
|
||||
return ff_filter_activate(filter);
|
||||
return ff_filter_activate(&ctxi->p);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user