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

stefano subversion
Sun Nov 7 19:40:05 CET 2010


Author: stefano
Date: Sun Nov  7 19:40:04 2010
New Revision: 25695

Log:
Add missing check in link_filter_inouts(), and fix possible (yet very unlikely) crash.

Modified:
   trunk/libavfilter/graphparser.c

Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c	Sun Nov  7 19:40:01 2010	(r25694)
+++ trunk/libavfilter/graphparser.c	Sun Nov  7 19:40:04 2010	(r25695)
@@ -229,6 +229,8 @@ static int link_filter_inouts(AVFilterCo
     pad = filt_ctx->output_count;
     while (pad--) {
         AVFilterInOut *currlinkn = av_mallocz(sizeof(AVFilterInOut));
+        if (!currlinkn)
+            return AVERROR(ENOMEM);
         currlinkn->filter  = filt_ctx;
         currlinkn->pad_idx = pad;
         insert_inout(curr_inputs, currlinkn);



More information about the ffmpeg-cvslog mailing list