[FFmpeg-cvslog] r25723 - trunk/libavfilter/graphparser.c

stefano subversion
Thu Nov 11 23:41:22 CET 2010


Author: stefano
Date: Thu Nov 11 23:41:22 2010
New Revision: 25723

Log:
Add missing check on the existence of an associated output pad for
each specified output link label.

Fix crash.

Modified:
   trunk/libavfilter/graphparser.c

Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c	Thu Nov 11 22:29:37 2010	(r25722)
+++ trunk/libavfilter/graphparser.c	Thu Nov 11 23:41:22 2010	(r25723)
@@ -294,6 +294,12 @@ static int parse_outputs(const char **bu
         AVFilterInOut *match;
 
         AVFilterInOut *input = *curr_inputs;
+        if (!input) {
+            av_log(log_ctx, AV_LOG_ERROR,
+                   "No output pad can be associated to link label '%s'.\n",
+                   name);
+            return AVERROR(EINVAL);
+        }
         *curr_inputs = (*curr_inputs)->next;
 
         if (!name)



More information about the ffmpeg-cvslog mailing list