Skip to content

Commit 32b19ad

Browse files
committed
[BSD3] since some files seem to have bad boxes, ignore the errors. We do not need the data anyway.
1 parent bf24bcd commit 32b19ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libheif/sequences/seq_boxes.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,13 +709,19 @@ Error Box_ctts::parse(BitstreamRange& range, const heif_security_limits* limits)
709709
entry.sample_count = range.read32();
710710
if (version == 0) {
711711
uint32_t offset = range.read32();
712+
#if 0
713+
// TODO: I disabled this because I found several files that seem to
714+
// have wrong data. Since we are not using the 'ctts' data anyway,
715+
// let's not care about it now.
716+
712717
if (offset > INT32_MAX) {
713718
return {
714719
heif_error_Unsupported_feature,
715720
heif_suberror_Unsupported_parameter,
716721
"We don't support offsets > 0x7fff in 'ctts' box."
717722
};
718723
}
724+
#endif
719725

720726
entry.sample_offset = static_cast<int32_t>(offset);
721727
}

0 commit comments

Comments
 (0)