From 42395cdcf3f419c04b5aeec7ca033d553879ae30 Mon Sep 17 00:00:00 2001 From: dukesook Date: Wed, 1 Nov 2023 13:20:56 +0000 Subject: [PATCH] verify if the two timestamp boxes truly need to be paired together --- libheif/heif_properties.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/libheif/heif_properties.h b/libheif/heif_properties.h index b5c9b6fc87..2910763e2a 100644 --- a/libheif/heif_properties.h +++ b/libheif/heif_properties.h @@ -139,8 +139,8 @@ void heif_item_get_property_transform_crop_borders(const struct heif_context* co // clock that used to record the TAI timestamps. struct heif_property_clock_info { - uint32_t version; - uint8_t flags; + uint8_t version; + uint32_t flags; uint64_t time_uncertainty; int64_t correction_offset; @@ -159,11 +159,18 @@ struct heif_error heif_property_get_clock_info(const struct heif_context* contex heif_item_id itemId, struct heif_property_clock_info** out); +/* + * + * TODO - Verify if the two really need to be added together + * If true, the add_timestamp should take in the clock property. + * +*/ + // The 'itai' TAI Timestamp Box indicates the time in nanoseconds since January 1, 1958 struct heif_property_timestamp { - uint32_t version; - uint8_t flags; + uint8_t version; + uint32_t flags; uint64_t tai_timestamp; uint8_t status_bits;