[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec imgconvert.c,1.57,1.58

Michael Niedermayer CVS michael
Mon Jul 11 02:43:23 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv2575

Modified Files:
	imgconvert.c 
Log Message:
segfault fix


Index: imgconvert.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/imgconvert.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- imgconvert.c	12 Jan 2005 00:16:24 -0000	1.57
+++ imgconvert.c	11 Jul 2005 00:43:21 -0000	1.58
@@ -576,6 +576,8 @@
                            const uint8_t *src, int src_wrap,
                            int width, int height)
 {
+    if((!dst) || (!src)) 
+        return;
     for(;height > 0; height--) {
         memcpy(dst, src, width);
         dst += dst_wrap;





More information about the ffmpeg-cvslog mailing list