From def75cfab6ca4da59ddc2e924898f3a8ed11ec89 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 12 Jan 2009 00:48:54 +0100 Subject: [PATCH] Replace a magic constant by a less magic constant. --- idct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } } -- 2.39.2