Commit 4bd49f97 for libheif

commit 4bd49f9776d2754f3c529207ddbca9ee607f11e5
Author: Olivier Crête <olivier.crete@collabora.com>
Date:   Sun May 31 14:27:09 2026 +0200

    Move the TAI clock_type into the 2 highests bits

    Reading the MP4 spec, I think it should be in the 2 highest bits, not the whole 8-bit

diff --git a/libheif/box.cc b/libheif/box.cc
index 649704c6..28f720ec 100644
--- a/libheif/box.cc
+++ b/libheif/box.cc
@@ -5219,7 +5219,7 @@ Error Box_taic::write(StreamWriter& writer) const {
   writer.write64(m_info.time_uncertainty);
   writer.write32(m_info.clock_resolution);
   writer.write32(m_info.clock_drift_rate);
-  writer.write8(m_info.clock_type);
+  writer.write8(m_info.clock_type << 6);

   prepend_header(writer, box_start);

@@ -5233,7 +5233,7 @@ Error Box_taic::parse(BitstreamRange& range, const heif_security_limits*) {
   m_info.clock_resolution = range.read32();

   m_info.clock_drift_rate = range.read32s();
-  m_info.clock_type = range.read8();
+  m_info.clock_type = range.read8() >> 6;
   return range.get_error();
 }