[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec imgresample.c,1.25,1.26

Alex Beregszaszi alex
Thu Oct 13 00:40:12 CEST 2005


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

Modified Files:
	imgresample.c 
Log Message:
sanity check whether dimensions are non-null

Index: imgresample.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/imgresample.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- imgresample.c	26 Aug 2005 19:05:44 -0000	1.25
+++ imgresample.c	12 Oct 2005 22:40:10 -0000	1.26
@@ -558,6 +558,9 @@
 {
     ImgReSampleContext *s;
 
+    if (!owidth || !oheight || !iwidth || !iheight)
+	return NULL;
+
     s = av_mallocz(sizeof(ImgReSampleContext));
     if (!s)
         return NULL;





More information about the ffmpeg-cvslog mailing list