[vlc-commits] commit: 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). (Jai Menon )

git at videolan.org git at videolan.org
Fri Jun 11 17:23:05 CEST 2010


vlc/vlc-1.1 | branch: master | Jai Menon <jmenon86 at gmail.com> | Fri Jun 11 18:56:22 2010 +0530| [8030d220c56269e5035700ea55a831bc8abfe6bb] | committer: Jean-Baptiste Kempf 

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: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=8030d220c56269e5035700ea55a831bc8abfe6bb
---

 modules/demux/mkv/matroska_segment_parse.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index 52fcb3f..7a81896 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -375,6 +375,8 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m )
                         {
                             EbmlMaster *compr = static_cast<EbmlMaster*>(l3);
                             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++ )
                             {
                                 EbmlElement *l4 = (*compr)[n];



More information about the vlc-commits mailing list