We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d48ff9 commit 724bcc1Copy full SHA for 724bcc1
mp4parse/src/lib.rs
@@ -2226,6 +2226,14 @@ fn read_iloc<T: Read>(src: &mut BMFFBox<T>) -> Result<TryVec<ItemLocationBoxItem
2226
extents.push(extent)?;
2227
}
2228
2229
+ // TODO: change items to TryHashMap once https://github.com/vcombey/fallible_collections/pull/12 merges
2230
+ if items
2231
+ .iter()
2232
+ .any(|prev_item: &ItemLocationBoxItem| prev_item.item_id == item_id)
2233
+ {
2234
+ return Err(Error::InvalidData("duplicate item_ID in iloc"));
2235
+ }
2236
+
2237
items.push(ItemLocationBoxItem {
2238
item_id,
2239
construction_method,
0 commit comments