From: Steinar H. Gunderson Date: Fri, 9 Jan 2009 20:00:53 +0000 (+0100) Subject: Fix a read of uninitialized memory. X-Git-Url: https://git.sesse.net/?p=fjl;a=commitdiff_plain;h=7a58d5cefdccb21fb1bfb1b86a816fd686ccce66 Fix a read of uninitialized memory. --- diff --git a/idct_test.c b/idct_test.c index 7dfac43..b4cec38 100644 --- a/idct_test.c +++ b/idct_test.c @@ -93,6 +93,11 @@ void test_performance(idct_func_t* idct) uint8_t output[DCTSIZE2]; gen_random_coeffs(coeff, DCTSIZE2); + + // Unit quantization (ie., no scaling). + for (unsigned i = 0; i < DCTSIZE2; ++i) { + quant[i] = 1; + } struct timeval start, now; gettimeofday(&start, NULL);