[FFmpeg-soc] [soc]: r1617 - libavfilter/avfiltergraph.c

koorogi subversion at mplayerhq.hu
Thu Dec 20 17:50:45 CET 2007


Author: koorogi
Date: Thu Dec 20 17:50:45 2007
New Revision: 1617

Log:
initialize filter graphs completely even if there is no list of filters
given to initially load.


Modified:
   libavfilter/avfiltergraph.c

Modified: libavfilter/avfiltergraph.c
==============================================================================
--- libavfilter/avfiltergraph.c	(original)
+++ libavfilter/avfiltergraph.c	Thu Dec 20 17:50:45 2007
@@ -546,14 +546,14 @@ static int init(AVFilterContext *ctx, co
 {
     GraphContext *gctx = ctx->priv;
 
-    if(!args)
-        return 0;
-
     if(!(gctx->link_filter = avfilter_open(&vf_graph_dummy, NULL)))
         return -1;
     if(avfilter_init_filter(gctx->link_filter, NULL, ctx))
         goto fail;
 
+    if(!args)
+        return 0;
+
     return graph_load_chain_from_string(ctx, args, NULL, NULL);
 
 fail:



More information about the FFmpeg-soc mailing list