Commit 8030d220 authored by Jai Menon's avatar Jai Menon Committed by Jean-Baptiste Kempf

Matroska : Set default compression type for the ContentCompAlgo element to 0...

Matroska : Set default compression type for the ContentCompAlgo element to 0 (indicating zlib). Some muxers (for example mkvmerge v4.0.0) do not write ebml elements which correspond to the default values (as defined in the spec).
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e931a7f7
...@@ -375,6 +375,8 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m ) ...@@ -375,6 +375,8 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m )
{ {
EbmlMaster *compr = static_cast<EbmlMaster*>(l3); EbmlMaster *compr = static_cast<EbmlMaster*>(l3);
MkvTree( sys.demuxer, 5, "Content Compression" ); MkvTree( sys.demuxer, 5, "Content Compression" );
//Default compression type is 0 (Zlib)
tk->i_compression_type = MATROSKA_COMPRESSION_ZLIB;
for( n = 0; n < compr->ListSize(); n++ ) for( n = 0; n < compr->ListSize(); n++ )
{ {
EbmlElement *l4 = (*compr)[n]; EbmlElement *l4 = (*compr)[n];
......
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