Commit f399cd49 authored by vitor's avatar vitor

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12709 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b340be67
...@@ -546,14 +546,14 @@ static int init(AVFilterContext *ctx, const char *args, void *opaque) ...@@ -546,14 +546,14 @@ static int init(AVFilterContext *ctx, const char *args, void *opaque)
{ {
GraphContext *gctx = ctx->priv; GraphContext *gctx = ctx->priv;
if(!args)
return 0;
if(!(gctx->link_filter = avfilter_open(&vf_graph_dummy, NULL))) if(!(gctx->link_filter = avfilter_open(&vf_graph_dummy, NULL)))
return -1; return -1;
if(avfilter_init_filter(gctx->link_filter, NULL, ctx)) if(avfilter_init_filter(gctx->link_filter, NULL, ctx))
goto fail; goto fail;
if(!args)
return 0;
return graph_load_chain_from_string(ctx, args, NULL, NULL); return graph_load_chain_from_string(ctx, args, NULL, NULL);
fail: fail:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment