int len, index, i;
int len, index, i, j;
static int mjpeg_decode_dqt(MJpegDecodeContext *s,                            UINT8 *buf, int buf_size){    int len, index, i;    init_get_bits(&s->gb, buf, buf_size);    len = get_bits(&s->gb, 16);    len -= 2;    while (len >= 65) {        /* only 8 bit precision handled */        if (get_bits(&s->gb, 4) != 0)            return -1;        index = get_bits(&s->gb, 4);        if (index >= 4)            return -1;        dprintf("index=%d\n", index);        /* read quant table */        for(i=0;i<64;i++)            s->quant_matrixes[index][i] = get_bits(&s->gb, 8);        len -= 65;    }    return 0;}