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:
_______________________________________________
FFmpeg-soc mailing list
[email protected]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc