mirror of
https://github.com/lz4/lz4.git
synced 2024-12-01 05:46:58 +08:00
Fix Framebench Output Buffer Sizing
This commit is contained in:
parent
9dae661b1f
commit
e0d8add791
@ -347,6 +347,9 @@ int main(int argc, char *argv[]) {
|
||||
options.stableSrc = 1;
|
||||
|
||||
out_size = LZ4F_compressFrameBound(in_size, &prefs);
|
||||
if ((size_t)LZ4_compressBound(in_size) > out_size) {
|
||||
out_size = LZ4_compressBound(in_size);
|
||||
}
|
||||
out_buf = (char *)malloc(out_size);
|
||||
if (!out_buf) return 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user