X-Git-Url: https://git.sesse.net/?p=fjl;a=blobdiff_plain;f=idct.c;h=c71d599833affb62944c4f915f89c9009aed034b;hp=ad1cc364642582b1711fb57122a7df186214f72c;hb=def75cfab6ca4da59ddc2e924898f3a8ed11ec89;hpb=13b48c4e2de5ceb4922ee47db32dd1a18edfffe4 diff --git a/idct.c b/idct.c index ad1cc36..c71d599 100644 --- a/idct.c +++ b/idct.c @@ -82,7 +82,7 @@ void* idct_float_alloc(const uint32_t* quant_table) 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]; } }