diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-05-22 17:57:59 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-06-21 12:39:02 +0200 |
commit | 49670e4218d34899a1c37abb7a11615efc16f757 (patch) | |
tree | aeeeaf41a6ae6575857a554477a7121960724430 /avconv_filter.c | |
parent | 58640fe89ec4f2a3d67c0a2585fca8de34440857 (diff) | |
download | ffmpeg-49670e4218d34899a1c37abb7a11615efc16f757.tar.gz |
avconv: add a function for determining whether a filtergraph is simple
This makes the code easier to read.
Diffstat (limited to 'avconv_filter.c')
-rw-r--r-- | avconv_filter.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/avconv_filter.c b/avconv_filter.c index a412f6e314..1d4aeb0770 100644 --- a/avconv_filter.c +++ b/avconv_filter.c @@ -691,7 +691,7 @@ static int configure_input_filter(FilterGraph *fg, InputFilter *ifilter, int configure_filtergraph(FilterGraph *fg) { AVFilterInOut *inputs, *outputs, *cur; - int ret, i, simple = !fg->graph_desc; + int ret, i, simple = filtergraph_is_simple(fg); const char *graph_desc = simple ? fg->outputs[0]->ost->avfilter : fg->graph_desc; @@ -760,3 +760,7 @@ int ist_in_filtergraph(FilterGraph *fg, InputStream *ist) return 0; } +int filtergraph_is_simple(FilterGraph *fg) +{ + return !fg->graph_desc; +} |