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++) { |
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 |
} |
} |