Assert ctx->state >= 0 in huffman decoding