Commit c0d32646 for libheif

commit c0d32646e863b17d0b7a2530109e2097d0f5a878
Author: Dirk Farin <dirk.farin@gmail.com>
Date:   Sun Dec 28 00:10:33 2025 +0100

    VVC: return error when reading a vvcC with ptl_present_flag=0. We do not support this yet. (#1648)

diff --git a/libheif/codecs/vvc_boxes.cc b/libheif/codecs/vvc_boxes.cc
index df5b6ed5..44b6b5ec 100644
--- a/libheif/codecs/vvc_boxes.cc
+++ b/libheif/codecs/vvc_boxes.cc
@@ -120,7 +120,13 @@ Error Box_vvcC::parse(BitstreamRange& range, const heif_security_limits* limits)
     c.max_picture_height = range.read16();
     c.avg_frame_rate = range.read16();
   }
-
+  else {
+    return Error{
+      heif_error_Unsupported_feature,
+      heif_suberror_Unspecified,
+      "Reading vvcC configuration with ptl_present_flag=0 is not supported."
+    };
+  }

   // read NAL arrays

diff --git a/libheif/codecs/vvc_boxes.h b/libheif/codecs/vvc_boxes.h
index cc5fb84f..fa67d765 100644
--- a/libheif/codecs/vvc_boxes.h
+++ b/libheif/codecs/vvc_boxes.h
@@ -59,7 +59,7 @@ public:
     uint8_t LengthSizeMinusOne = 3;  // 0,1,3   default: 4 bytes for NAL unit lengths
     bool ptl_present_flag = true;

-    // only of PTL present
+    // only if PTL present
     uint16_t ols_idx; // 9 bits
     uint8_t num_sublayers; // 3 bits
     uint8_t constant_frame_rate; // 2 bits