Skip to content

Commit 05a18ea

Browse files
author
Grok Compression
committed
core_example: call grk_initialize before calling any code
1 parent 8445019 commit 05a18ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/core/core_decompress.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,9 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] const char** argv)
577577
return app.exit(e); // Handle parsing errors
578578
}
579579

580+
// initialize library
581+
grk_initialize(nullptr, numThreads);
582+
580583
// #define TEST_FUZZER
581584
#ifdef TEST_FUZZER
582585
{
@@ -706,9 +709,6 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] const char** argv)
706709
grk_header_info headerInfo = {};
707710
std::pair<grk_object*, bool> drc;
708711

709-
// initialize library
710-
grk_initialize(nullptr, numThreads);
711-
712712
// create j2k file stream
713713
inputFileStr = inputFilePath.c_str();
714714
if(fromBuffer)

0 commit comments

Comments
 (0)