From 6af29a1d6684723c91d12fa4a0e5f91fc253c258 Mon Sep 17 00:00:00 2001 From: Adrien Marty Date: Tue, 14 Feb 2023 10:24:48 +0100 Subject: [PATCH] Fixing interlock when activating flag GPMF_FLAGS_STORE_ALL_TIMESTAMPS --- GPMF_writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPMF_writer.c b/GPMF_writer.c index 1342554..7216fba 100644 --- a/GPMF_writer.c +++ b/GPMF_writer.c @@ -596,7 +596,7 @@ void AppendFormattedMetadata(device_metadata *dm, uint32_t *formatted, uint32_t uint32_t swap64timestamp[2]; uint64_t *ptr64 = (uint64_t *)&swap64timestamp[0]; uint32_t buf[5]; - uint32_t stampflags = (flags & GPMF_FLAGS_LOCKED) | GPMF_FLAGS_DONT_COUNT; + uint32_t stampflags = flags | GPMF_FLAGS_LOCKED | GPMF_FLAGS_DONT_COUNT; *ptr64 = BYTESWAP64(TimeStamp); // TimeStamp = 0; // with this commented out it will store both jitter removed and raw timestamps.