From 755e6842e02f7fc7451f3f9586f2ad79b94d262b Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Mon, 18 May 2020 14:12:59 +0200
Subject: [PATCH] Add tags

---
 src/mkv/mkv.c | 41 ++++++++++++++++++++++++-----------------
 1 file changed, 24 insertions(+), 17 deletions(-)

diff --git a/src/mkv/mkv.c b/src/mkv/mkv.c
index d1384bc1..e7c10bb3 100644
--- a/src/mkv/mkv.c
+++ b/src/mkv/mkv.c
@@ -14,23 +14,30 @@
 
 #define MKV_TAG_MAX 64
 
-#define EBML_ROOT            0x1a45dfa3
-#define EBML_MKV_SEGMENT     0x18538067
-#define EBML_MKV_SEEKHEAD    0x114d9b74
-#define EBML_MKV_SEEK        0x00004dbb
-#define EBML_MKV_SEEK_ID     0x000053ab
-#define EBML_MKV_SEEK_POS    0x000053ac
-#define EBML_MKV_TAGS        0x1254c367
-#define EBML_MKV_TAG         0x00007373
-#define EBML_MKV_TAG_TARGETS 0x000063c0
-#define EBML_MKV_TAG_TTV     0x000068ca   /* TargetTypeValue */
-#define EBML_MKV_TAG_SIMPLE  0x000067c8   /* SimpleTag */
-#define EBML_MKV_TAG_NAME    0x000045a3
-#define EBML_MKV_TAG_STRING  0x00004487
-#define EBML_MKV_TAG_BINARY  0x00004485
-
-#define EBML_MKV_CRC32      0x0000000bf   /* CRC-32, they skip it in mpv (demux/ebml.c:463 aprox) */
-#define EBML_MKV_VOID       0x0000000ec   /* VOID element */
+#define EBML_ROOT               0x1a45dfa3
+#define EBML_MKV_SEGMENT        0x18538067
+#define EBML_MKV_SEEKHEAD       0x114d9b74
+#define EBML_MKV_SEEK           0x00004dbb
+#define EBML_MKV_SEEK_ID        0x000053ab
+#define EBML_MKV_SEEK_POS       0x000053ac
+#define EBML_MKV_TAGS           0x1254c367
+#define EBML_MKV_TAG            0x00007373
+#define EBML_MKV_TAG_TARGETS    0x000063c0
+#define EBML_MKV_TAG_TTV        0x000068ca  /* Tag: TargetTypeValue, L4 */
+#define EBML_MKV_TAG_SIMPLE     0x000067c8  /* Tag: SimpleTag, L3+      */
+#define EBML_MKV_TAG_NAME       0x000045a3
+#define EBML_MKV_TAG_STRING     0x00004487
+#define EBML_MKV_TAG_BINARY     0x00004485
+#define EBML_MKV_SEG_DURATION   0x00004489  /* Segment: Duration, L2        */
+#define EBML_MKV_SEG_TS_SCALE   0x002ad7b1  /* Segment: TimestampScale, L2  */
+#define EBML_MKV_SEG_NAME       0x00007ba9  /* Segment: Title, L2           */
+#define EBML_MKV_ATTACHEMENT    0x1941a469
+#define EBML_MKV_ATTCH_NAME     0x0000466e  /* Attachement: FileName, L3        */
+#define EBML_MKV_ATTCH_DESC     0x0000467e  /* Attachement: FileDescription, L3 */
+#define EBML_MKV_ATTCH_MIME     0x00004660  /* Attachement: FileMimeType, L3    */
+
+#define EBML_MKV_CRC32          0x0000000bf /* CRC-32, they skip it in mpv (demux/ebml.c:463 aprox) */
+#define EBML_MKV_VOID           0x0000000ec /* VOID element */
 
 /* mkv_read_* functions take data from the bufferfd and parse the next "*" (one
  * of the following):
-- 
GitLab