[FFmpeg-devel] [PATCH] graphparser: simplify condition in avfilter_graph_parse()
Stefano Sabatini
stefano.sabatini-lala at poste.it
Sat Jul 2 16:31:31 CEST 2011
The new check is simpler and does not depends on the content of
open_inputs.
---
libavfilter/graphparser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index bf1c204..e0edd92 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -389,7 +389,7 @@ int avfilter_graph_parse(AVFilterGraph *graph, const char *filters,
goto fail;
}
- if (open_inputs && *open_inputs && !strcmp((*open_inputs)->name, "out") && curr_inputs) {
+ if (curr_inputs) {
/* Last output pad, assume it is "[out]" if not specified */
const char *tmp = "[out]";
if ((ret = parse_outputs(&tmp, &curr_inputs, &open_inputs, &open_outputs,
--
1.7.2.5
More information about the ffmpeg-devel
mailing list