Commit 90a33310 authored by Steve Lhomme's avatar Steve Lhomme

libmatroska2: add the default TRACK_PLANE values

fix mkvtree on WebM files

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/foundation_src@698 a6f86f6d-0131-4f8e-9e7b-e335508773d5
parent cd8d5ab0
......@@ -88,6 +88,10 @@ typedef int64_t timecode_t; // in nanoseconds
#define TRACK_STEREO_MODE_SIDEBYSIDE_R 11
#define TRACK_STEREO_MODE_ANAGLYPH_GREEN_MAG 12
#define TRACK_PLANE_LEFT 0
#define TRACK_PLANE_RIGHT 1
#define TRACK_PLANE_BACKGROUND 2
#define TRACK_OLD_STEREOMODE_MONO 0
#define TRACK_OLD_STEREOMODE_RIGHT 1
#define TRACK_OLD_STEREOMODE_LEFT 2
......
......@@ -210,7 +210,9 @@ static ebml_element *OutputElement(ebml_element *Element, const ebml_parser_cont
const uint8_t *Data = EBML_BinaryGetData((ebml_binary*)Element);
if (EBML_ElementDataSize(Element, 1) != 0)
{
if (EBML_ElementDataSize(Element, 1) == 1)
if (Data==NULL)
fprintf(stdout,"[data too large] (%"PRId64")",EBML_ElementDataSize(Element, 1));
else if (EBML_ElementDataSize(Element, 1) == 1)
fprintf(stdout,"%02X (%"PRId64")",Data[0],EBML_ElementDataSize(Element, 1));
else if (EBML_ElementDataSize(Element, 1) == 2)
fprintf(stdout,"%02X %02X (%"PRId64")",Data[0],Data[1],EBML_ElementDataSize(Element, 1));
......@@ -233,7 +235,13 @@ static ebml_element *OutputElement(ebml_element *Element, const ebml_parser_cont
EBML_ElementSkipData(Element, Input, Context, NULL, 0);
EndLine(Element);
}
// TODO: handle crc32
else if (Node_IsPartOf(Element,EBML_CRC_CLASS))
{
// TODO: handle crc32
fprintf(stdout,"[%"PRId64" bytes]",EBML_ElementDataSize(Element, 1));
EBML_ElementSkipData(Element, Input, Context, NULL, 0);
EndLine(Element);
}
else
{
#ifdef IS_BIG_ENDIAN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment