From: Steve Lhomme Date: Sun, 13 Mar 2022 09:12:52 +0000 (+0100) Subject: KaxSemantic.cpp: make KaxInfo/KaxTracks elements unique X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c59afe89c4e0942c40f8ea9e621d0036f761fcdc;p=libmatroska KaxSemantic.cpp: make KaxInfo/KaxTracks elements unique See https://github.com/ietf-wg-cellar/matroska-specification/commit/c97409a7c9b13c3fb34ef2010ba7a4a3ae96f162 "adding the maxOccurs value makes it clearer that there cannot be multiple variants of this element, only exact copies." Maybe this will trip some validating code that don't know about repeating elements. --- diff --git a/src/KaxSemantic.cpp b/src/KaxSemantic.cpp index f7dd9d2..d0167db 100644 --- a/src/KaxSemantic.cpp +++ b/src/KaxSemantic.cpp @@ -44,9 +44,9 @@ START_LIBMATROSKA_NAMESPACE DEFINE_START_SEMANTIC(KaxSegment) DEFINE_SEMANTIC_ITEM(false, false, KaxSeekHead) -DEFINE_SEMANTIC_ITEM(true, false, KaxInfo) +DEFINE_SEMANTIC_ITEM(true, true, KaxInfo) DEFINE_SEMANTIC_ITEM(false, false, KaxCluster) -DEFINE_SEMANTIC_ITEM(false, false, KaxTracks) +DEFINE_SEMANTIC_ITEM(false, true, KaxTracks) DEFINE_SEMANTIC_ITEM(false, true, KaxCues) DEFINE_SEMANTIC_ITEM(false, true, KaxAttachments) DEFINE_SEMANTIC_ITEM(false, true, KaxChapters)