]> granicus.if.org Git - libmatroska/commitdiff
add TimecodeScaleDenominator to make a fraction with TimecodeScale in Matroska v4
authorSteve Lhomme <slhomme@matroska.org>
Sun, 23 Sep 2012 09:18:56 +0000 (09:18 +0000)
committerSteve Lhomme <slhomme@matroska.org>
Sun, 23 Sep 2012 09:18:56 +0000 (09:18 +0000)
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libmatroska@856 a6f86f6d-0131-4f8e-9e7b-e335508773d5

matroska/KaxSemantic.h
src/KaxSemantic.cpp

index 134286179f4172b0b9678eb300492a3a6920a4ff..482830fb6f4750367c0895dc4449def982e0108d 100644 (file)
@@ -98,6 +98,11 @@ DECLARE_MKX_BINARY (KaxChapterTranslateID)
 DECLARE_MKX_UINTEGER(KaxTimecodeScale)
 };
 
+#if MATROSKA_VERSION >= 2
+DECLARE_MKX_UINTEGER(KaxTimecodeScaleDenominator)
+};
+#endif
+
 DECLARE_MKX_FLOAT(KaxDuration)
 };
 
index 5f52ad05d8e4f434c7537b266d39b6f798a2e012..70d2ecccc7050726d2909b86c73b62be0bc8f6c1 100644 (file)
@@ -79,6 +79,9 @@ DEFINE_SEMANTIC_ITEM(false, true, KaxNextFilename)
 DEFINE_SEMANTIC_ITEM(false, false, KaxSegmentFamily)\r
 DEFINE_SEMANTIC_ITEM(false, false, KaxChapterTranslate)\r
 DEFINE_SEMANTIC_ITEM(true, true, KaxTimecodeScale)\r
+#if MATROSKA_VERSION >= 2\r
+DEFINE_SEMANTIC_ITEM(true, true, KaxTimecodeScaleDenominator)\r
+#endif // MATROSKA_VERSION\r
 DEFINE_SEMANTIC_ITEM(false, true, KaxDuration)\r
 DEFINE_SEMANTIC_ITEM(false, true, KaxDateUTC)\r
 DEFINE_SEMANTIC_ITEM(false, true, KaxTitle)\r
@@ -106,6 +109,9 @@ DEFINE_MKX_UINTEGER(KaxChapterTranslateEditionUID, 0x69FC, 2, KaxChapterTranslat
 DEFINE_MKX_UINTEGER(KaxChapterTranslateCodec, 0x69BF, 2, KaxChapterTranslate, "ChapterTranslateCodec");\r
 DEFINE_MKX_BINARY (KaxChapterTranslateID, 0x69A5, 2, KaxChapterTranslate, "ChapterTranslateID");\r
 DEFINE_MKX_UINTEGER_DEF(KaxTimecodeScale, 0x2AD7B1, 3, KaxInfo, "TimecodeScale", 1000000);\r
+#if MATROSKA_VERSION >= 2\r
+DEFINE_MKX_UINTEGER_DEF(KaxTimecodeScaleDenominator, 0x2AD7B2, 3, KaxInfo, "TimecodeScaleDenominator", 1000000000);\r
+#endif\r
 DEFINE_MKX_FLOAT(KaxDuration, 0x4489, 2, KaxInfo, "Duration");\r
 DEFINE_MKX_DATE    (KaxDateUTC, 0x4461, 2, KaxInfo, "DateUTC");\r
 DEFINE_MKX_UNISTRING(KaxTitle, 0x7BA9, 2, KaxInfo, "Title");\r