]> git.sesse.net Git - fjl/blobdiff - driver.c
Add optional padding data at the end to the bit source (is that the right place?...
[fjl] / driver.c
index 06d94d99d553e6aa4e784e22cfc99a4d19216df5..aa803d6ed00aa67266495b65df93e6582bc89151 100644 (file)
--- a/driver.c
+++ b/driver.c
@@ -147,7 +147,7 @@ void read_scan(struct byte_source* source, struct jpeg_image* image, huffman_tab
        }
 
        struct bit_source bits;
-       init_bit_source(&bits, byte_source_input_func, source);
+       init_bit_source(&bits, byte_source_input_func, 8, source);
                
        unsigned mcu_x = 0, mcu_y = 0;