Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing interlock when activating flag GPMF_FLAGS_STORE_ALL_TIMESTAMPS #12

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GPMF_writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down