[vlc-commits] commit: Support for webm/mkv and VP8 inside it (Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Wed May 19 18:30:32 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed May 19 18:28:25 2010 +0200| [57fee78fbf80e640695053d016450f92eff152ee] | committer: Jean-Baptiste Kempf
Support for webm/mkv and VP8 inside it
We now should wait for libvpx integration
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=57fee78fbf80e640695053d016450f92eff152ee
---
modules/demux/mkv/demux.cpp | 2 +-
modules/demux/mkv/matroska_segment.cpp | 4 ++++
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/demux/mkv/demux.cpp b/modules/demux/mkv/demux.cpp
index 848eecc..c5f47a6 100644
--- a/modules/demux/mkv/demux.cpp
+++ b/modules/demux/mkv/demux.cpp
@@ -66,7 +66,7 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS
p_l0->Read(*p_estream, EbmlHead::ClassInfos.Context, i_upper_lvl, p_l0, true);
EDocType doc_type = GetChild<EDocType>(*static_cast<EbmlHead*>(p_l0));
- if (std::string(doc_type) != "matroska")
+ if (std::string(doc_type) != "matroska" && std::string(doc_type) != "webm" )
{
msg_Err( p_demux, "Not a Matroska file : DocType = %s ", std::string(doc_type).c_str());
return NULL;
diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index 2a7d085..6153183 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -858,6 +858,10 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
{
tracks[i_track]->fmt.i_codec = VLC_CODEC_DIRAC;
}
+ else if( !strncmp( tracks[i_track]->psz_codec, "V_VP8", 5 ) )
+ {
+ tracks[i_track]->fmt.i_codec = VLC_CODEC_VP8;
+ }
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-commits
mailing list