[FFmpeg-devel] [PATCH] graphparser: clarify comments in avfilter_graph_parse()
Stefano Sabatini
stefano.sabatini-lala at poste.it
Sat Jul 2 16:31:13 CEST 2011
---
libavfilter/graphparser.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 62fa1a1..bf1c204 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -355,7 +355,7 @@ int avfilter_graph_parse(AVFilterGraph *graph, const char *filters,
goto fail;
if (filter->input_count == 1 && !curr_inputs && !index) {
- /* First input can be omitted if it is "[in]" */
+ /* First input pad, assume it is "[in]" if not specified */
const char *tmp = "[in]";
if ((ret = parse_inputs(&tmp, &curr_inputs, &open_outputs, log_ctx)) < 0)
goto fail;
@@ -390,7 +390,7 @@ int avfilter_graph_parse(AVFilterGraph *graph, const char *filters,
}
if (open_inputs && *open_inputs && !strcmp((*open_inputs)->name, "out") && curr_inputs) {
- /* Last output can be omitted if it is "[out]" */
+ /* 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,
log_ctx)) < 0)
--
1.7.2.5
More information about the ffmpeg-devel
mailing list