bugfix: 修改brotli压缩等级

This commit is contained in:
fengweihao
2021-09-13 17:12:18 +08:00
parent 8d8b5eb039
commit 745187d0a3
3 changed files with 20 additions and 19 deletions

View File

@@ -299,6 +299,8 @@ int deflate_init(struct z_stream_st **strm, int gzip)
(*strm)->brenc_state = BrotliEncoderCreateInstance(NULL, NULL, NULL);
if ( (*strm)->brenc_state == NULL)
ret = -1;
BrotliEncoderSetParameter((*strm)->brenc_state, BROTLI_PARAM_QUALITY, 3);
}
if (ret != Z_OK)
FREE(strm);