Commit e49f666b for libheif
commit e49f666b54afab022d20bdfcc1c4e5297d6fa468
Author: Dirk Farin <dirk.farin@gmail.com>
Date: Sun Dec 14 15:44:57 2025 +0100
[BSD3] always include 'ccst' (also in alpha tracks)
diff --git a/libheif/sequences/track_visual.cc b/libheif/sequences/track_visual.cc
index 7cf8e6fd..5d4f7499 100644
--- a/libheif/sequences/track_visual.cc
+++ b/libheif/sequences/track_visual.cc
@@ -603,7 +603,9 @@ Result<bool> Track_Visual::process_encoded_data(heif_encoder* h_encoder)
// add Coding-Constraints box (ccst) only if we are generating an image sequence
// TODO: does the alpha track also need a ccst box?
- if (m_hdlr->get_handler_type() == heif_track_type_image_sequence) {
+ // ComplianceWarden says so (and it makes sense), but HEIF says that 'ccst' shall be present
+ // if the handler is 'pict'. However, the alpha track is 'auxv'.
+ if (true) { // m_hdlr->get_handler_type() == heif_track_type_image_sequence) {
auto ccst = std::make_shared<Box_ccst>();
ccst->set_coding_constraints(data.codingConstraints);
sample_description_box->append_child_box(ccst);