Write dict_id in zlib header in big-endian style.

Signed-off-by: Mo Zhai <zhaimo14@mails.ucas.ac.cn>
This commit is contained in:
Mo Zhai 2022-03-18 19:52:34 +08:00 committed by MoZhai15
parent ad8dce15c6
commit 2320709c8c

View File

@ -1146,7 +1146,7 @@ uint32_t isal_write_zlib_header(struct isal_zstream *stream, struct isal_zlib_he
out_buf[1] = flg;
if (dict_flag)
store_le_u32(out_buf + 2, z_hdr->dict_id);
store_be_u32(out_buf + 2, z_hdr->dict_id);
stream->next_out += hdr_size;
stream->total_out += hdr_size;