[FFmpeg-cvslog] r18897 - trunk/libavformat/mpegenc.c

bcoudurier subversion
Fri May 22 21:11:56 CEST 2009


Author: bcoudurier
Date: Fri May 22 21:11:56 2009
New Revision: 18897

Log:
fail if stream fifo could not be allocated

Modified:
   trunk/libavformat/mpegenc.c

Modified: trunk/libavformat/mpegenc.c
==============================================================================
--- trunk/libavformat/mpegenc.c	Fri May 22 20:39:00 2009	(r18896)
+++ trunk/libavformat/mpegenc.c	Fri May 22 21:11:56 2009	(r18897)
@@ -382,6 +382,8 @@ static int mpeg_mux_init(AVFormatContext
             return -1;
         }
         stream->fifo= av_fifo_alloc(16);
+        if (!stream->fifo)
+            goto fail;
     }
     bitrate = 0;
     audio_bitrate = 0;



More information about the ffmpeg-cvslog mailing list