for (unsigned y = 0; y < DCTSIZE; ++y) {
for (unsigned x = 0; x < DCTSIZE; ++x) {
- qt_copy[y * DCTSIZE + x] = 0.125 * quant_table[y * DCTSIZE + x] *
+ qt_copy[y * DCTSIZE + x] = (1.0/DCTSIZE) * quant_table[y * DCTSIZE + x] *
scalefac[x] * scalefac[y];
}
}