gcc-2.95.3 fix, patch inspired by Steven M. Schultz

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15665 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
iive 2005-06-06 17:27:46 +00:00
parent ab9767642a
commit f05fcfafd4
1 changed files with 2 additions and 1 deletions

View File

@ -1069,6 +1069,7 @@ static int set_create_struct(xvid_mplayer_module_t *mod)
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 @@ static int set_create_struct(xvid_mplayer_module_t *mod)
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