diff options
author | Timothy Gu <timothygu99@gmail.com> | 2016-08-03 20:33:57 -0700 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2016-08-03 20:33:57 -0700 |
commit | 9aa3023672b3336968cbdb5c4a733b6088ad564e (patch) | |
tree | 1eca1cafedc738c61b7de481c405af44feeab9fd /ffmpeg_filter.c | |
parent | 7f7cedd7139f18480e3dacd1abcfd94bda01fa17 (diff) | |
parent | 49670e4218d34899a1c37abb7a11615efc16f757 (diff) | |
download | ffmpeg-9aa3023672b3336968cbdb5c4a733b6088ad564e.tar.gz |
Merge commit '49670e4218d34899a1c37abb7a11615efc16f757'
* commit '49670e4218d34899a1c37abb7a11615efc16f757':
avconv: add a function for determining whether a filtergraph is simple
Conflicts:
avconv.c
Merged-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'ffmpeg_filter.c')
-rw-r--r-- | ffmpeg_filter.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ffmpeg_filter.c b/ffmpeg_filter.c index 7745cb61b5..0f8319f62b 100644 --- a/ffmpeg_filter.c +++ b/ffmpeg_filter.c @@ -979,7 +979,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; @@ -1102,3 +1102,7 @@ int ist_in_filtergraph(FilterGraph *fg, InputStream *ist) return 0; } +int filtergraph_is_simple(FilterGraph *fg) +{ + return !fg->graph_desc; +} |