[Mplayer-cvslog] CVS: main/drivers mga_vid.c,1.29,1.30

Arpi of Ize arpi at mplayer.dev.hu
Thu Jan 3 00:38:18 CET 2002


Update of /cvsroot/mplayer/main/drivers
In directory mplayer:/var/tmp.root/cvs-serv14776

Modified Files:
	mga_vid.c 
Log Message:
lastminute divbyzero fix by Attila Kinali ;)

Index: mga_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/drivers/mga_vid.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- mga_vid.c	25 Nov 2001 23:34:37 -0000	1.29
+++ mga_vid.c	2 Jan 2002 23:38:16 -0000	1.30
@@ -607,6 +607,11 @@
 	printk(KERN_DEBUG "mga_vid: Setting up a %dx%d+%d+%d video window (src %dx%d) format %X\n",
 	       dw, dh, x, y, sw, sh, config->format);
 
+	if(sw<4 || sh<4 || dw<4 || dh<4){
+	    printk(KERN_ERR "mga_vid: Invalid src/dest dimenstions\n");
+	    return -1;
+	}
+
 	//FIXME check that window is valid and inside desktop
 	
 	//FIXME figure out a better way to allocate memory on card




More information about the MPlayer-cvslog mailing list