[vlc-devel] [PATCH] MKV : Always export CodecPrivate (as the ES' extradata) if it is present.

Jai Menon jmenon86 at gmail.com
Thu Jul 1 17:13:43 CEST 2010


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

diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index 04e4a22..aed2cfa 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -1164,6 +1164,10 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
         {
             p_tk->fmt.i_priority = 1000;
         }
+        // Export CodecPrivate if it is present and the ES format's
+        // extradata field hasn't been populated yet.
+        if( !p_tk->fmt.p_extra && p_tk->i_extra_data )
+            fill_extra_data( p_tk );
 
         p_tk->p_es = es_out_Add( sys.demuxer.out, &p_tk->fmt );
 
-- 
1.7.1




More information about the vlc-devel mailing list