[MPlayer-dev-eng] gcc 2.95.3 ve_xvid4.c compile error
Steven M. Schultz
sms at 2BSD.COM
Mon Jun 6 19:06:05 CEST 2005
Let's try it again - the previous patch was in error.
> Trivial patch to compile libmpcodecs/ve_xvid4.c with gcc 2.95.x
Sorry for the banged up first attempt - I didn't spot the problem
on first test.
Cheers,
Steven Schultz
-------------- next part --------------
--- libmpcodecs/ve_xvid4.c.dist Mon Jun 6 09:41:23 2005
+++ libmpcodecs/ve_xvid4.c Mon Jun 6 10:02:48 2005
@@ -1064,6 +1064,7 @@
{
void *p;
int i;
+ int q;
p = xvidenc_zones;
create->num_zones = 0; // set the number of zones back to zero, this overwrites the zone defined for CQ - desired because each zone has to be specified on the commandline even in cq mode
for(i = 0; p; i++)
@@ -1077,7 +1078,8 @@
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
More information about the MPlayer-dev-eng
mailing list