bugfix: 修改brotli压缩等级
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user