From 7a58d5cefdccb21fb1bfb1b86a816fd686ccce66 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 9 Jan 2009 21:00:53 +0100 Subject: [PATCH] Fix a read of uninitialized memory. --- idct_test.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.39.2