Skip to content

Commit d7bc7e8

Browse files
committed
spectool: add VERSION_MATROSKA_UP_TO_V4
We don't actually need VERSION_WEBM_UP_TO_V4
1 parent 1848565 commit d7bc7e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spectool/schema_2_kaxsemantic_cpp.xsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ static constexpr const MatroskaProfile VERSION_WEBM_SINCE_V4 = {true, false, 4};
5757
static constexpr const MatroskaProfile VERSION_MATROSKA_UP_TO_V2 = {false, false, 0, 2};
5858
// available since version 1, 2 and 3 of Matroska but not WebM or DivX
5959
static constexpr const MatroskaProfile VERSION_MATROSKA_UP_TO_V3 = {false, false, 0, 3};
60-
// available since version 1, 2, 3 and 4 of Matroska and WebM but not DivX
61-
static constexpr const MatroskaProfile VERSION_WEBM_UP_TO_V4 = {true, false, 0, 4};
60+
// available since version 1, 2, 3 and 4 of Matroska but not WebM or DivX
61+
static constexpr const MatroskaProfile VERSION_MATROSKA_UP_TO_V4 = {false, false, 0, 4};
6262
<xsl:for-each select="ebml:element[not(starts-with(@path,'\EBML\'))]">
6363
<!-- sorting messes the detection of the previous element MATROSKA_VERSION state -->
6464
<!-- Maybe for each output we create we also create a counterpart call to check if the new MATROSKA_VERSION state that should be used -->
@@ -515,7 +515,7 @@ static constexpr const MatroskaProfile VERSION_WEBM_UP_TO_V4 = {true, false, 0,
515515
<xsl:when test="$node/@minver='4' and not($node/@maxver) and ebml:extension[@webm='1'] and not(ebml:extension[@divx='1'])"><xsl:text>VERSION_WEBM_SINCE_V4</xsl:text></xsl:when>
516516
<xsl:when test="(not($node/@minver) or $node/@minver='0') and $node/@maxver='2' and not(ebml:extension[@webm='1']) and not(ebml:extension[@divx='1'])"><xsl:text>VERSION_MATROSKA_UP_TO_V2</xsl:text></xsl:when>
517517
<xsl:when test="(not($node/@minver) or $node/@minver='0') and $node/@maxver='3' and not(ebml:extension[@webm='1']) and not(ebml:extension[@divx='1'])"><xsl:text>VERSION_MATROSKA_UP_TO_V3</xsl:text></xsl:when>
518-
<xsl:when test="(not($node/@minver) or $node/@minver='0') and $node/@maxver='4' and ebml:extension[@webm='1'] and not(ebml:extension[@divx='1'])"><xsl:text>VERSION_WEBM_UP_TO_V4</xsl:text></xsl:when>
518+
<xsl:when test="(not($node/@minver) or $node/@minver='0') and $node/@maxver='4' and not(ebml:extension[@webm='1']) and not(ebml:extension[@divx='1'])"><xsl:text>VERSION_MATROSKA_UP_TO_V4</xsl:text></xsl:when>
519519
<xsl:otherwise>
520520
<xsl:text>MatroskaProfile(</xsl:text>
521521
<xsl:choose>

0 commit comments

Comments
 (0)