[FFmpeg-soc] [soc]: r1922 - in libavfilter: avfiltergraph.c avfiltergraph.h

vitor subversion at mplayerhq.hu
Sun Feb 24 12:41:22 CET 2008


Author: vitor
Date: Sun Feb 24 12:41:22 2008
New Revision: 1922

Log:
Remove ugly forward declaration

Modified:
   libavfilter/avfiltergraph.c
   libavfilter/avfiltergraph.h

Modified: libavfilter/avfiltergraph.c
==============================================================================
--- libavfilter/avfiltergraph.c	(original)
+++ libavfilter/avfiltergraph.c	Sun Feb 24 12:41:22 2008
@@ -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
                     /* 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)) {

Modified: libavfilter/avfiltergraph.h
==============================================================================
--- libavfilter/avfiltergraph.h	(original)
+++ libavfilter/avfiltergraph.h	Sun Feb 24 12:41:22 2008
@@ -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.



More information about the FFmpeg-soc mailing list