Unfix the coefficient fix.
authorsgunderson@bigfoot.com <>
Sun, 31 May 2009 11:12:26 +0000 (13:12 +0200)
committersgunderson@bigfoot.com <>
Sun, 31 May 2009 11:12:26 +0000 (13:12 +0200)
driver.c

index 6a7a8ec82d01996cdd83ea511575e6a65a76afc4..2e5bda67f475f7e2fe58f2f899c1f2c7e2a17769 100644 (file)
--- a/driver.c
+++ b/driver.c
@@ -163,11 +163,10 @@ void read_scan(struct byte_source* source, struct jpeg_image* image, huffman_tab
                                                        i += 15;
                                                        continue;
                                                }
+                                               i += r;
 
                                                possibly_refill(&bits, s);
                                                coeff[unzigzag[i]] = extend(read_bits(&bits, s), s);
-
-                                               i += r;
                                        }
                        
                                        uint8_t pixdata[DCTSIZE2];