[FFmpeg-cvslog] r12709 - trunk/libavfilter/avfiltergraph.c

vitor subversion
Fri Apr 4 22:07:37 CEST 2008


Author: vitor
Date: Fri Apr  4 22:07:37 2008
New Revision: 12709

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

Commited in SoC by Bobby Bingham on 2007-12-20 16:50:45


Modified:
   trunk/libavfilter/avfiltergraph.c

Modified: trunk/libavfilter/avfiltergraph.c
==============================================================================
--- trunk/libavfilter/avfiltergraph.c	(original)
+++ trunk/libavfilter/avfiltergraph.c	Fri Apr  4 22:07:37 2008
@@ -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-cvslog mailing list