summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index fc791ade..74174e37 100644
--- a/main.cpp
+++ b/main.cpp
@@ -364,7 +364,9 @@ int main(int argc, char *argv[])
throw std::runtime_error {"Shared memory error"};
}
}
+ mem_jt9.lock ();
memset(mem_jt9.data(),0,sizeof(struct dec_data)); //Zero all decoding params in shared memory
+ mem_jt9.unlock ();
unsigned downSampleFactor;
{