avformat/matroskadec: Fix default value of BlockAddID
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 20 Nov 2019 12:26:59 +0000 (13:26 +0100)
committerJames Almer <jamrial@gmail.com>
Wed, 20 Nov 2019 14:22:14 +0000 (11:22 -0300)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/matroskadec.c

index c224c34..bd6f085 100644 (file)
@@ -707,7 +707,7 @@ static EbmlSyntax matroska_segments[] = {
 };
 
 static EbmlSyntax matroska_blockmore[] = {
-    { MATROSKA_ID_BLOCKADDID,      EBML_UINT, 0, offsetof(MatroskaBlock,additional_id) },
+    { MATROSKA_ID_BLOCKADDID,      EBML_UINT, 0, offsetof(MatroskaBlock,additional_id), { .u = 1 } },
     { MATROSKA_ID_BLOCKADDITIONAL, EBML_BIN,  0, offsetof(MatroskaBlock,additional) },
     CHILD_OF(matroska_blockadditions)
 };