Skip to content

Commit 40c982b

Browse files
author
chad-iris
committed
When time correction value is present always set the time correction applied bit when creating V2 records. Thanks @nicoleroy-ipgp.
1 parent 60c5c4a commit 40c982b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pack.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,11 @@ msr3_pack_header2 (MS3Record *msr, char *record, uint32_t recbuflen, int8_t verb
10491049
json_value_get_type (extravalue) == JSONNumber)
10501050
{
10511051
*pMS2FSDH_TIMECORRECT (record) = HO4d (json_value_get_number (extravalue) * 10000, swapflag);
1052+
1053+
/* Set time correction applied bit in activity flags.
1054+
Rationale: V3 records do not allow unapplied time corrections and unapplied
1055+
time corrections in V2 records are always applied on read by this library. */
1056+
*pMS2FSDH_ACTFLAGS (record) |= 0x02;
10521057
}
10531058
else
10541059
{

0 commit comments

Comments
 (0)