[vlc-devel] commit: [MKV] Detect Dirac in MKV. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Fri Dec 12 11:50:36 CET 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Dec 12 11:42:34 2008 +0100| [9ed799b9907b4e959426c8326749174a8293a9f6] | committer: Jean-Baptiste Kempf
[MKV] Detect Dirac in MKV.
This needs more testing, but we are lacking samples.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9ed799b9907b4e959426c8326749174a8293a9f6
---
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 46cc5e6..4547d7b 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -745,6 +745,10 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
else if( !strcmp( tracks[i_track]->psz_codec, "V_REAL/RV40" ) )
tracks[i_track]->fmt.i_codec = VLC_FOURCC( 'R', 'V', '4', '0' );
}
+ else if( !strncmp( tracks[i_track]->psz_codec, "V_DIRAC", 7 ) )
+ {
+ tracks[i_track]->fmt.i_codec = VLC_FOURCC('d', 'r', 'a', 'c' );
+ }
else if( !strncmp( tracks[i_track]->psz_codec, "V_MPEG4", 7 ) )
{
if( !strcmp( tracks[i_track]->psz_codec, "V_MPEG4/MS/V3" ) )
More information about the vlc-devel
mailing list