Skip to content

Commit

Permalink
Don't use ZSTD_defaultCLevel() as it's not available on older version…
Browse files Browse the repository at this point in the history
…s of zstd

Summary: ZSTD_defaultCLevel() isn't always available on the version of zstd we get in open source, breaking some CI builds on GitHub, but ZSTD_CLEVEL_DEFAULT goes back to version v1.3.5.

Differential Revision: D60815132
  • Loading branch information
Georges Berenger authored and facebook-github-bot committed Aug 6, 2024
1 parent 84d02dc commit e8dfe47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vrs/Compressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct CompressionPresetConverter : public EnumStringConverter<
int zstdPresetToCompressionLevel(CompressionPreset preset) {
auto iter = sZstdPresets.find(preset);
if (iter == sZstdPresets.end()) {
return ZSTD_defaultCLevel();
return ZSTD_CLEVEL_DEFAULT;
}
return iter->second;
}
Expand Down

0 comments on commit e8dfe47

Please sign in to comment.