Skip to content

Commit

Permalink
Always init grok lib with nthreads=0
Browse files Browse the repository at this point in the history
  • Loading branch information
martaiborra committed Jan 25, 2024
1 parent 6ba5b73 commit 10ff368
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/blosc2_grok.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void blosc2_grok_set_default_params(const int64_t *tile_size, const int64_t *til
int duration, int repeats,
bool verbose) {
if (!GRK_INITIALIZED) {
blosc2_grok_init(1, true);
blosc2_grok_init(0, false);
}

// Change defaults
Expand Down Expand Up @@ -174,7 +174,7 @@ int blosc2_grok_encoder(
int size = -1;

if (!GRK_INITIALIZED) {
blosc2_grok_init(1, true);
blosc2_grok_init(0, false);
}

// Read blosc2 metadata
Expand Down Expand Up @@ -329,7 +329,7 @@ int beach_decoder(grk_codec * codec, int rc) {
int blosc2_grok_decoder(const uint8_t *input, int32_t input_len, uint8_t *output, int32_t output_len,
uint8_t meta, blosc2_dparams *dparams, const void *chunk) {
if (!GRK_INITIALIZED) {
blosc2_grok_init(1, true);
blosc2_grok_init(0, false);
}

// initialize decompress parameters
Expand Down

0 comments on commit 10ff368

Please sign in to comment.