changeset 15664:aa24bbbfd5c4

gcc-2.95.3 fix, patch inspired by Steven M. Schultz
author iive
date Mon, 06 Jun 2005 17:27:46 +0000
parents ca5b6229b878
children 9aaf33c037da
files libmpcodecs/ve_xvid4.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_xvid4.c	Mon Jun 06 17:11:56 2005 +0000
+++ b/libmpcodecs/ve_xvid4.c	Mon Jun 06 17:27:46 2005 +0000
@@ -1069,6 +1069,7 @@
 		for(i = 0; p; i++)
 		{
         		int start;
+        		int q;
 			double value;
 			char mode;
         		int e = sscanf(p, "%d,%c,%lf", &start, &mode, &value); // start,mode(q = constant quant, w = weight),value
@@ -1077,7 +1078,7 @@
 	    			mp_msg(MSGT_MENCODER,MSGL_ERR, "error parsing zones\n");
             		return(BAD);
         		}
-			int q = (int)(value * 100);
+			q = (int)(value * 100);
 			if (mode == 'q')
 			{
 				if (q < 200 || q > 3100) // make sure that quantizer is in allowable range