From: sgunderson@bigfoot.com <> Date: Sun, 31 May 2009 09:44:48 +0000 (+0200) Subject: Write to the right coefficient. X-Git-Url: https://git.sesse.net/?p=fjl;a=commitdiff_plain;h=1a06bba6c31510bf385e9dd5d47922177a77c676;hp=932bd7d9a70e5709e226c0c5f0d8134c0e2db0aa Write to the right coefficient. --- 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];