diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-04-05 00:07:37 +0400 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-04-05 00:07:37 +0400 |
commit | 54d7fcc1207ed37356f06e3a31a4e6bdaa096958 (patch) | |
tree | 4fbebcc732277e435b23cff6ac9ffb86be64ab1e /libavfilter | |
parent | 5a7414f3caf6ad58ce98b5e62230a7cbb9ebcc6d (diff) |
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
Originally committed as revision 12709 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avfiltergraph.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index 26f8280109..5ff4447428 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -546,14 +546,14 @@ static int init(AVFilterContext *ctx, const char *args, void *opaque) { 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: |