[FFmpeg-devel] [PATCH 8/9] Make parse_outputs() always return meaningful error codes.

Stefano Sabatini stefano.sabatini-lala
Fri Nov 5 18:20:32 CET 2010


---
 libavfilter/graphparser.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 1038e12..251f697 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -296,9 +296,9 @@ static int parse_outputs(const char **buf, AVFilterInOut **curr_inputs,
         match = extract_inout(name, open_inputs);
 
         if (match) {
-            if (link_filter(input->filter, input->pad_idx,
-                            match->filter, match->pad_idx, log_ctx) < 0)
-                return -1;
+            if ((ret = link_filter(input->filter, input->pad_idx,
+                                   match->filter, match->pad_idx, log_ctx)) < 0)
+                return ret;
             av_free(match->name);
             av_free(name);
             av_free(match);
-- 
1.7.1




More information about the ffmpeg-devel mailing list