[cvs] / xvidcore / src / encoder.c Repository:
ViewVC logotype

Diff of /xvidcore/src/encoder.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.95.2.36, Sat Aug 2 15:08:19 2003 UTC revision 1.95.2.37, Sun Aug 3 10:20:12 2003 UTC
# Line 1285  Line 1285 
1285  {  {
1286      unsigned int i,j;      unsigned int i,j;
1287      int quant = frame->quant;      int quant = frame->quant;
1288        if (quant > 31)
1289                    frame->quant = quant = 31;
1290            else if (quant < 1)
1291                    frame->quant = quant = 1;
1292    
1293      for (j=0; j<pParam->mb_height; j++)      for (j=0; j<pParam->mb_height; j++)
1294      for (i=0; i<pParam->mb_width; i++) {      for (i=0; i<pParam->mb_width; i++) {
# Line 1292  Line 1296 
1296          quant += pMB->dquant;          quant += pMB->dquant;
1297          if (quant > 31)          if (quant > 31)
1298                          quant = 31;                          quant = 31;
1299                  if (quant < 1)                  else if (quant < 1)
1300                          quant = 1;                          quant = 1;
1301          pMB->quant = quant;          pMB->quant = quant;
1302      }      }

Legend:
Removed from v.1.95.2.36  
changed lines
  Added in v.1.95.2.37

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4