[MPlayer-dev-eng] gcc 2.95.3 ve_xvid4.c compile error

Steven M. Schultz sms at 2BSD.COM
Mon Jun 6 18:54:49 CEST 2005


Hi -

	Trivial patch to compile libmpcodecs/ve_xvid4.c with gcc 2.95.x

	Cheers,
	Steven Schultz
-------------- next part --------------
--- libmpcodecs/ve_xvid4.c.dist	Mon Jun  6 09:41:23 2005
+++ libmpcodecs/ve_xvid4.c	Mon Jun  6 09:51:51 2005
@@ -1077,7 +1077,9 @@
 	    			mp_msg(MSGT_MENCODER,MSGL_ERR, "error parsing zones\n");
             		return(BAD);
         		}
-			int q = (int)(value * 100);
+			int q;
+
+			q = (int)(value * 100);
 			if (mode == 'q')
 			{
 				if (q < 200 || q > 3100) // make sure that quantizer is in allowable range


More information about the MPlayer-dev-eng mailing list