X-Git-Url: https://git.sesse.net/?p=fjl;a=blobdiff_plain;f=dehuff.c;h=c4a65eea8a0619153bb9910cd5421db53bd01193;hp=af16b512a83c0f796fd24ff8a499e15fe3719817;hb=a4009687c73083dd0290285a065740a83e27e855;hpb=8a495c6c9b595e9f188ef703d71fa868cbb1605d diff --git a/dehuff.c b/dehuff.c index af16b51..c4a65ee 100644 --- a/dehuff.c +++ b/dehuff.c @@ -114,7 +114,7 @@ void read_huffman_tables(huffman_tables_t* dst, input_func_t* input_func, void* for (unsigned elem = prefix_min; elem < prefix_max; ++elem) { assert(tbl->lookup_table_codes[elem] == DEHUF_SLOW_PATH); assert(tbl->lookup_table_length[elem] == DEHUF_SLOW_PATH); - tbl->lookup_table_codes[elem] = k; + tbl->lookup_table_codes[elem] = tbl->codes[k]; tbl->lookup_table_length[elem] = length; } }