s->intra_c_dequant[j] = s->coded_intra_c_dequant[i] * ac_scale_factor / 100;
s->intra_c_dequant[j] = s->coded_intra_c_dequant[k] * ac_scale_factor / 100;
static void init_dequantizer(Vp3DecodeContext *s){    int ac_scale_factor = s->coded_ac_scale_factor[s->quality_index];    int dc_scale_factor = s->coded_dc_scale_factor[s->quality_index];    int i, j;    debug_vp3("  vp3: initializing dequantization tables\n");    /*      * Scale dequantizers:     *     *   quantizer * sf     *   --------------     *        100     *     * where sf = dc_scale_factor for DC quantizer     *         or ac_scale_factor for AC quantizer     *     * Then, saturate the result to a lower limit of MIN_DEQUANT_VAL.     */#define SCALER 4    /* scale DC quantizers */    s->intra_y_dequant[0] = s->coded_intra_y_dequant[0] * dc_scale_factor / 100;    if (s->intra_y_dequant[0] < MIN_DEQUANT_VAL * 2)        s->intra_y_dequant[0] = MIN_DEQUANT_VAL * 2;    s->intra_y_dequant[0] *= SCALER;    s->intra_c_dequant[0] = s->coded_intra_c_dequant[0] * dc_scale_factor / 100;    if (s->intra_c_dequant[0] < MIN_DEQUANT_VAL * 2)        s->intra_c_dequant[0] = MIN_DEQUANT_VAL * 2;    s->intra_c_dequant[0] *= SCALER;    s->inter_dequant[0] = s->coded_inter_dequant[0] * dc_scale_factor / 100;    if (s->inter_dequant[0] < MIN_DEQUANT_VAL * 4)        s->inter_dequant[0] = MIN_DEQUANT_VAL * 4;    s->inter_dequant[0] *= SCALER;    /* scale AC quantizers, zigzag at the same time in preparation for     * the dequantization phase */    for (i = 1; i < 64; i++) {        j = i;        s->intra_y_dequant[j] = s->coded_intra_y_dequant[i] * ac_scale_factor / 100;        if (s->intra_y_dequant[j] < MIN_DEQUANT_VAL)            s->intra_y_dequant[j] = MIN_DEQUANT_VAL;        s->intra_y_dequant[j] *= SCALER;        s->intra_c_dequant[j] = s->coded_intra_c_dequant[i] * ac_scale_factor / 100;        if (s->intra_c_dequant[j] < MIN_DEQUANT_VAL)            s->intra_c_dequant[j] = MIN_DEQUANT_VAL;        s->intra_c_dequant[j] *= SCALER;        s->inter_dequant[j] = s->coded_inter_dequant[i] * ac_scale_factor / 100;        if (s->inter_dequant[j] < MIN_DEQUANT_VAL * 2)            s->inter_dequant[j] = MIN_DEQUANT_VAL * 2;        s->inter_dequant[j] *= SCALER;    }        memset(s->qscale_table, (FFMAX(s->intra_y_dequant[1], s->intra_c_dequant[1])+8)/16, 512); //FIXME finetune    /* print debug information as requested */    debug_dequantizers("intra Y dequantizers:\n");    for (i = 0; i < 8; i++) {      for (j = i * 8; j < i * 8 + 8; j++) {        debug_dequantizers(" %4d,", s->intra_y_dequant[j]);      }      debug_dequantizers("\n");    }    debug_dequantizers("\n");    debug_dequantizers("intra C dequantizers:\n");    for (i = 0; i < 8; i++) {      for (j = i * 8; j < i * 8 + 8; j++) {        debug_dequantizers(" %4d,", s->intra_c_dequant[j]);      }      debug_dequantizers("\n");    }    debug_dequantizers("\n");    debug_dequantizers("interframe dequantizers:\n");    for (i = 0; i < 8; i++) {      for (j = i * 8; j < i * 8 + 8; j++) {        debug_dequantizers(" %4d,", s->inter_dequant[j]);      }      debug_dequantizers("\n");    }    debug_dequantizers("\n");}