aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-11-20 13:26:59 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-04-03 21:44:01 +0200
commit293c389812929f268ac62888e36c6a7735bc439f (patch)
treec211a52eb0bcb73328d5ba00136048913c27bdb8
parent26e1d0d015bb11ab0383729c52cfca4fd9cf4e79 (diff)
downloadffmpeg-293c389812929f268ac62888e36c6a7735bc439f.tar.gz
avformat/matroskadec: Fix default value of BlockAddID
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit dbc50f8a935043243232b2e01f3c012ab6d49928)
-rw-r--r--libavformat/matroskadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 37c9a1c11e..f1e76b8b45 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -684,7 +684,7 @@ static const EbmlSyntax matroska_segments[] = {
};
static const 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) },
{ 0 }
};