[FFmpeg-soc] [soc]: r2188 - libavfilter/graphparser.c

vitor subversion at mplayerhq.hu
Sat May 24 14:53:28 CEST 2008


Author: vitor
Date: Sat May 24 14:53:28 2008
New Revision: 2188

Log:
Cosmetics: more function reordering

Modified:
   libavfilter/graphparser.c

Modified: libavfilter/graphparser.c
==============================================================================
--- libavfilter/graphparser.c	(original)
+++ libavfilter/graphparser.c	Sat May 24 14:53:28 2008
@@ -150,6 +150,29 @@ static AVFilterContext *create_filter(AV
     return filt;
 }
 
+/**
+ * Parse "filter=params"
+ * @arg name a pointer (that need to be free'd after use) to the name of the
+ *           filter
+ * @arg ars  a pointer (that need to be free'd after use) to the args of the
+ *           filter
+ */
+static AVFilterContext *parse_filter(const char **buf, AVFilterGraph *graph,
+                                     int index, AVClass *log_ctx)
+{
+    char *opts;
+    char *name = consume_string(buf);
+
+    if(**buf == '=') {
+        (*buf)++;
+        opts = consume_string(buf);
+    } else {
+        opts = NULL;
+    }
+
+    return create_filter(graph, index, name, opts, log_ctx);
+}
+
 static void free_inout(AVFilterInOut *head)
 {
     while(head) {
@@ -226,29 +249,6 @@ static int link_filter_inouts(AVFilterCo
     return 0;
 }
 
-/**
- * Parse "filter=params"
- * @arg name a pointer (that need to be free'd after use) to the name of the
- *           filter
- * @arg ars  a pointer (that need to be free'd after use) to the args of the
- *           filter
- */
-static AVFilterContext *parse_filter(const char **buf, AVFilterGraph *graph,
-                                     int index, AVClass *log_ctx)
-{
-    char *opts;
-    char *name = consume_string(buf);
-
-    if(**buf == '=') {
-        (*buf)++;
-        opts = consume_string(buf);
-    } else {
-        opts = NULL;
-    }
-
-    return create_filter(graph, index, name, opts, log_ctx);
-}
-
 static int parse_inputs(const char **buf, AVFilterInOut **currInputs,
                         AVFilterInOut **openLinks, AVClass *log_ctx)
 {



More information about the FFmpeg-soc mailing list