[FFmpeg-cvslog] r19701 - trunk/libavformat/r3d.c

bcoudurier subversion
Tue Aug 25 21:58:22 CEST 2009


Author: bcoudurier
Date: Tue Aug 25 21:58:21 2009
New Revision: 19701

Log:
check av_new_stream return value, patch by Kent Mein, mein at cs dot umn dot edu

Modified:
   trunk/libavformat/r3d.c

Modified: trunk/libavformat/r3d.c
==============================================================================
--- trunk/libavformat/r3d.c	Tue Aug 25 11:46:16 2009	(r19700)
+++ trunk/libavformat/r3d.c	Tue Aug 25 21:58:21 2009	(r19701)
@@ -87,6 +87,8 @@ static int r3d_read_red1(AVFormatContext
     dprintf(s, "audio channels %d\n", tmp);
     if (tmp > 0) {
         AVStream *ast = av_new_stream(s, 1);
+        if (!ast)
+            return AVERROR(ENOMEM);
         ast->codec->codec_type = CODEC_TYPE_AUDIO;
         ast->codec->codec_id = CODEC_ID_PCM_S32BE;
         ast->codec->channels = tmp;



More information about the ffmpeg-cvslog mailing list