[vlc-devel] [PATCH] MKV : Add MJPEG codec ID.

Jai Menon jmenon86 at gmail.com
Wed Jul 14 13:44:14 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 7ce4e29..581d7f9 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -938,6 +938,10 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
             }
             stream_Delete( p_mp4_stream );
         }
+        else if( !strcmp( p_tk->psz_codec, "V_MJPEG" ) )
+        {
+            p_tk->fmt.i_codec = VLC_CODEC_MJPG;
+        }
         else if( !strcmp( p_tk->psz_codec, "A_MS/ACM" ) )
         {
             if( p_tk->i_extra_data < (int)sizeof( WAVEFORMATEX ) )
-- 
1.7.1.1




More information about the vlc-devel mailing list