Commit f5c8a095 for libheif
commit f5c8a095bb9e0e47e3eab8f85d3db0d9b65adf12
Author: Dirk Farin <dirk.farin@gmail.com>
Date: Thu Oct 15 21:00:39 2026 +0200
Initialize the data_reference_index of the urim sample entry
Box_URIMetaSampleEntry never initialized data_reference_index, so the
urim sample entry of a URI metadata track was written with whatever
the memory held. The index must be 1 to refer to the single dref entry.
diff --git a/libheif/sequences/seq_boxes.h b/libheif/sequences/seq_boxes.h
index 462a44f9..e8187d91 100644
--- a/libheif/sequences/seq_boxes.h
+++ b/libheif/sequences/seq_boxes.h
@@ -700,7 +700,7 @@ protected:
private:
// from SampleEntry
//const unsigned int(8)[6] reserved = 0;
- uint16_t data_reference_index;
+ uint16_t data_reference_index = 1;
};