X-Git-Url: https://git.sesse.net/?p=fjl;a=blobdiff_plain;f=dehuff.c;h=5574e27184b8de5961b01f1f76cbf0e27688c89b;hp=8cdc2c8feb33fb675dcafb6bbb3ca8b64c98a204;hb=HEAD;hpb=bbe665e5ef6a103657f4d921ddd4b540f38daf3d diff --git a/dehuff.c b/dehuff.c index 8cdc2c8..5574e27 100644 --- a/dehuff.c +++ b/dehuff.c @@ -133,14 +133,14 @@ void read_huffman_tables(huffman_tables_t* dst, input_func_t* input_func, void* } if (rs == 0x00) { // End of block. - tbl->ac_table_codes[i] = AC_END_OF_BLOCK; + tbl->ac_table_codes[i] = 0; tbl->ac_table_length[i] = length; - tbl->ac_table_skip[i] = 1; + tbl->ac_table_skip[i] = 64; continue; } if (rs == 0xf0) { // 16 zero coefficients. - tbl->ac_table_codes[i] = AC_SIXTEEN_ZEROS; + tbl->ac_table_codes[i] = 0; tbl->ac_table_length[i] = length; tbl->ac_table_skip[i] = 16; continue;