Rename read_length to read_uint16, and add a read_uint8.
[fjl] / dehuff.c
index b44218df43432a5780ef393a0419b3fcd63622b1..af16b512a83c0f796fd24ff8a499e15fe3719817 100644 (file)
--- a/dehuff.c
+++ b/dehuff.c
@@ -8,7 +8,7 @@
 
 void read_huffman_tables(huffman_tables_t* dst, input_func_t* input_func, void* userdata)
 {
-       size_t len = read_length(input_func, userdata);
+       size_t len = read_uint16(input_func, userdata);
        assert(len > 2);
        len -= 2;