From 1a06bba6c31510bf385e9dd5d47922177a77c676 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Sun, 31 May 2009 11:44:48 +0200 Subject: [PATCH] Write to the right coefficient. --- driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver.c b/driver.c index 0834df7..6a7a8ec 100644 --- a/driver.c +++ b/driver.c @@ -165,9 +165,9 @@ void read_scan(struct byte_source* source, struct jpeg_image* image, huffman_tab } possibly_refill(&bits, s); + coeff[unzigzag[i]] = extend(read_bits(&bits, s), s); i += r; - coeff[unzigzag[i]] = extend(read_bits(&bits, s), s); } uint8_t pixdata[DCTSIZE2]; -- 2.39.2