if(s->mb_intra) i=1; else            i=0;
if(s->mb_intra){ i=1;  }else i=0;
static inline void auto_requantize_coeffs(MpegEncContext *s, DCTELEM block[6][64]){    int i,n, newq;    const int maxlevel= s->max_qcoeff;    const int minlevel= s->min_qcoeff;    int largest=0, smallest=0;    assert(s->adaptive_quant);        for(n=0; n<6; n++){        if(s->mb_intra) i=1;        else            i=0;        for(;i<=s->block_last_index[n]; i++){            const int j = zigzag_direct[i]; //FIXME other scantabs            int level = block[n][j];            if(largest  < level) largest = level;            if(smallest > level) smallest= level;        }    }        for(newq=s->qscale+1; newq<32; newq++){        if(   ROUNDED_DIV(smallest*s->qscale, newq) >= minlevel           && ROUNDED_DIV(largest *s->qscale, newq) <= maxlevel)             break;    }            if(s->out_format==FMT_H263){        /* h263 like formats cannot change qscale by more than 2 easiely */        if(s->avctx->qmin + 2 < newq)            newq= s->avctx->qmin + 2;    }    for(n=0; n<6; n++){        requantize_coeffs(s, block[n], s->qscale, newq, n);        clip_coeffs(s, block[n], s->block_last_index[n]);    }         s->dquant+= newq - s->qscale;    s->qscale= newq;}