[FFmpeg-cvslog] r13488 - trunk/libavformat/yuv4mpeg.c

michael subversion
Wed May 28 03:57:19 CEST 2008


Author: michael
Date: Wed May 28 03:57:19 2008
New Revision: 13488

Log:
Null pointer check / CID26.


Modified:
   trunk/libavformat/yuv4mpeg.c

Modified: trunk/libavformat/yuv4mpeg.c
==============================================================================
--- trunk/libavformat/yuv4mpeg.c	(original)
+++ trunk/libavformat/yuv4mpeg.c	Wed May 28 03:57:19 2008
@@ -322,6 +322,8 @@ static int yuv4_read_header(AVFormatCont
     }
 
     st = av_new_stream(s, 0);
+    if(!st)
+        return -1;
     st->codec->width = width;
     st->codec->height = height;
     av_reduce(&raten, &rated, raten, rated, (1UL<<31)-1);




More information about the ffmpeg-cvslog mailing list