int level, run, last, i, j, last_index, last_non_zero, sign, slevel; int code; RLTable *rl = &rl_inter;
int level, run, last, i, j, last_index, last_non_zero, sign, slevel, code; RLTable *rl;
static void h263_encode_block(MpegEncContext * s, DCTELEM * block, int n){    int level, run, last, i, j, last_index, last_non_zero, sign, slevel;    int code;    RLTable *rl = &rl_inter;    if (s->mb_intra) {        /* DC coef */	    level = block[0];        /* 255 cannot be represented, so we clamp */        if (level > 254) {            level = 254;            block[0] = 254;        }        /* 0 cannot be represented also */        else if (!level) {            level = 1;            block[0] = 1;        }	    if (level == 128)	        put_bits(&s->pb, 8, 0xff);	    else	        put_bits(&s->pb, 8, level & 0xff);	    i = 1;    } else {	    i = 0;    }    /* AC coefs */    last_index = s->block_last_index[n];    last_non_zero = i - 1;    for (; i <= last_index; i++) {	j = zigzag_direct[i];	level = block[j];	if (level) {	    run = i - last_non_zero - 1;	    last = (i == last_index);	    sign = 0;	    slevel = level;	    if (level < 0) {		sign = 1;		level = -level;	    }            code = get_rl_index(rl, last, run, level);            put_bits(&s->pb, rl->table_vlc[code][1], rl->table_vlc[code][0]);            if (code == rl->n) {                put_bits(&s->pb, 1, last);                put_bits(&s->pb, 6, run);                put_bits(&s->pb, 8, slevel & 0xff);            } else {                put_bits(&s->pb, 1, sign);            }	    last_non_zero = i;	}    }}