From 111367263af41c88a44bd763ceefc11d53a7f655 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 31 Mar 2013 12:17:07 +0200 Subject: lavfi: add AVFilterContext.graph. It will be useful in the following commits. --- libavfilter/avfiltergraph.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavfilter/avfiltergraph.c') diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index 828b462550..969d958541 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -73,6 +73,8 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) graph->filter_count = graph->nb_filters; #endif + filter->graph = graph; + return 0; } #endif @@ -121,6 +123,8 @@ AVFilterContext *avfilter_graph_alloc_filter(AVFilterGraph *graph, graph->filter_count = graph->nb_filters; #endif + s->graph = graph; + return s; } -- cgit v1.2.3