int lx;
{
int j;
- register unsigned int v, s, s2;
+ unsigned int v, s, s2;
s = s2 = 0;
*/
- for( l = 0; l < 6; ++l )
- actsum +=
- (*pquant_weight_coeff_sum)
+ if( cur_picture.mbinfo[k].dctblocks )
+ for( l = 0; l < 6; ++l )
+ actsum += (*pquant_weight_coeff_sum)
( cur_picture.mbinfo[k].dctblocks[l], i_q_mat ) ;
actj = (double)actsum / (double)COEFFSUM_SCALE;
if( actj < 12.0 )