From 8c86b4cc6275e7b5a570b5f0e27d8c241184ce6f Mon Sep 17 00:00:00 2001 From: "Pocze Bence (XC/ENG4-Bp)" Date: Mon, 21 Feb 2022 08:39:52 +0100 Subject: [PATCH] create const for COMPRESSION_PRESET --- src/compress_measurements.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compress_measurements.cpp b/src/compress_measurements.cpp index aca7d9a..e84b15c 100644 --- a/src/compress_measurements.cpp +++ b/src/compress_measurements.cpp @@ -15,13 +15,14 @@ extern "C" #include } +const uint32_t COMPRESSION_PRESET = 9 | LZMA_PRESET_EXTREME; const std::vector ENDINGS = {".mf4", ".rif"}; int main(int argc, char *argv[]) { const std::filesystem::path directory = argc > 1 ? argv[1] : std::filesystem::current_path(); lzma_stream strm = LZMA_STREAM_INIT; - bool success = lzma_init_encoder(&strm, 9 | LZMA_PRESET_EXTREME); + bool success = lzma_init_encoder(&strm, COMPRESSION_PRESET); if (success) {