[FFmpeg-cvslog] r11462 - trunk/libavformat/mxf.c

bcoudurier subversion
Tue Jan 8 14:48:53 CET 2008


Author: bcoudurier
Date: Tue Jan  8 14:48:52 2008
New Revision: 11462

Log:
check av_new_stream return value

Modified:
   trunk/libavformat/mxf.c

Modified: trunk/libavformat/mxf.c
==============================================================================
--- trunk/libavformat/mxf.c	(original)
+++ trunk/libavformat/mxf.c	Tue Jan  8 14:48:52 2008
@@ -775,6 +775,10 @@ static int mxf_parse_structural_metadata
             continue;
 
         st = av_new_stream(mxf->fc, source_track->track_id);
+        if (!st) {
+            av_log(mxf->fc, AV_LOG_ERROR, "could not allocate stream\n");
+            return -1;
+        }
         st->priv_data = source_track;
         st->duration = component->duration;
         if (st->duration == -1)




More information about the ffmpeg-cvslog mailing list