From 3ec394ea823c2a6e65a6abbdb2041ce1c66964f8 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Fri, 4 Apr 2008 20:08:31 +0000 Subject: [PATCH] Remove ugly forward declaration Commited in SoC by Vitor Sessak on 2008-02-24 11:41:22 Originally committed as revision 12728 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavfilter/avfiltergraph.c | 8 ++------ libavfilter/avfiltergraph.h | 4 ++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index 2c07a924a0..70610cbdfe 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -22,11 +22,6 @@ #include "avfilter.h" #include "avfiltergraph.h" -extern AVFilter avfilter_vf_scale; -extern AVFilter avfilter_vf_graph; -extern AVFilter avfilter_vf_graphfile; -extern AVFilter avfilter_vf_graphdesc; - typedef struct AVFilterGraph { unsigned filter_count; AVFilterContext **filters; @@ -425,7 +420,8 @@ static int query_formats(AVFilterContext *graphctx) /* couldn't merge format lists. auto-insert scale filter */ AVFilterContext *scale; - if(!(scale = avfilter_open(&avfilter_vf_scale, NULL))) + if(!(scale = + avfilter_open(avfilter_get_by_name("scale"), NULL))) return -1; if(scale->filter->init(scale, NULL, NULL) || avfilter_insert_filter(link, scale, 0, 0)) { diff --git a/libavfilter/avfiltergraph.h b/libavfilter/avfiltergraph.h index 8dc122d2ec..baa228bfc2 100644 --- a/libavfilter/avfiltergraph.h +++ b/libavfilter/avfiltergraph.h @@ -86,6 +86,10 @@ typedef struct AVFilterGraphDescExport **outputp; ///< last parsed exported output } AVFilterGraphDescParser; +extern AVFilter avfilter_vf_graph; +extern AVFilter avfilter_vf_graphfile; +extern AVFilter avfilter_vf_graphdesc; + /** * Parse a graph composed of a simple chain of filters which is described by * a single string.