[FFmpeg-cvslog] avformat/matroskadec: Fix default value of BlockAddID

Andreas Rheinhardt git at videolan.org
Sat Apr 4 00:19:26 EEST 2020


ffmpeg | branch: release/3.0 | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Wed Nov 20 13:26:59 2019 +0100| [e6316607268ec4c31beb85ece0a5bcea4fa1e452] | committer: Andreas Rheinhardt

avformat/matroskadec: Fix default value of BlockAddID

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit dbc50f8a935043243232b2e01f3c012ab6d49928)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e6316607268ec4c31beb85ece0a5bcea4fa1e452
---

 libavformat/matroskadec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 0451c33fe7..e52edeeadf 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -591,7 +591,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 }
 };



More information about the ffmpeg-cvslog mailing list