modules/demux/mkv.cpp:

 * comment out parsing of elements that no muxer ever used, and that are
   being removed from the spec. (patch by Mosu in the mkv team)
parent 7ebee392
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* mkv.cpp : matroska demuxer * mkv.cpp : matroska demuxer
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: mkv.cpp,v 1.52 2004/01/05 18:15:12 hartman Exp $ * $Id: mkv.cpp,v 1.53 2004/01/22 14:27:53 sigmunau Exp $
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -543,15 +543,15 @@ static int Open( vlc_object_t * p_this ) ...@@ -543,15 +543,15 @@ static int Open( vlc_object_t * p_this )
msg_Dbg( p_input, "| | | + Track Type=%s", msg_Dbg( p_input, "| | | + Track Type=%s",
psz_type ); psz_type );
} }
else if( EbmlId( *el3 ) == KaxTrackFlagEnabled::ClassInfos.GlobalId ) // else if( EbmlId( *el3 ) == KaxTrackFlagEnabled::ClassInfos.GlobalId )
{ // {
KaxTrackFlagEnabled &fenb = *(KaxTrackFlagEnabled*)el3; // KaxTrackFlagEnabled &fenb = *(KaxTrackFlagEnabled*)el3;
fenb.ReadData( p_sys->es->I_O() ); // fenb.ReadData( p_sys->es->I_O() );
tk.b_enabled = uint32( fenb ); // tk.b_enabled = uint32( fenb );
msg_Dbg( p_input, "| | | + Track Enabled=%u", // msg_Dbg( p_input, "| | | + Track Enabled=%u",
uint32( fenb ) ); // uint32( fenb ) );
} // }
else if( EbmlId( *el3 ) == KaxTrackFlagDefault::ClassInfos.GlobalId ) else if( EbmlId( *el3 ) == KaxTrackFlagDefault::ClassInfos.GlobalId )
{ {
KaxTrackFlagDefault &fdef = *(KaxTrackFlagDefault*)el3; KaxTrackFlagDefault &fdef = *(KaxTrackFlagDefault*)el3;
...@@ -651,44 +651,44 @@ static int Open( vlc_object_t * p_this ) ...@@ -651,44 +651,44 @@ static int Open( vlc_object_t * p_this )
tk.psz_codec_name = UTF8ToStr( UTFstring( cname ) ); tk.psz_codec_name = UTF8ToStr( UTFstring( cname ) );
msg_Dbg( p_input, "| | | + Track Codec Name=%s", tk.psz_codec_name ); msg_Dbg( p_input, "| | | + Track Codec Name=%s", tk.psz_codec_name );
} }
else if( EbmlId( *el3 ) == KaxCodecSettings::ClassInfos.GlobalId ) // else if( EbmlId( *el3 ) == KaxCodecSettings::ClassInfos.GlobalId )
{ // {
KaxCodecSettings &cset = *(KaxCodecSettings*)el3; // KaxCodecSettings &cset = *(KaxCodecSettings*)el3;
cset.ReadData( p_sys->es->I_O() ); // cset.ReadData( p_sys->es->I_O() );
tk.psz_codec_settings = UTF8ToStr( UTFstring( cset ) ); // tk.psz_codec_settings = UTF8ToStr( UTFstring( cset ) );
msg_Dbg( p_input, "| | | + Track Codec Settings=%s", tk.psz_codec_settings ); // msg_Dbg( p_input, "| | | + Track Codec Settings=%s", tk.psz_codec_settings );
} // }
else if( EbmlId( *el3 ) == KaxCodecInfoURL::ClassInfos.GlobalId ) // else if( EbmlId( *el3 ) == KaxCodecInfoURL::ClassInfos.GlobalId )
{ // {
KaxCodecInfoURL &ciurl = *(KaxCodecInfoURL*)el3; // KaxCodecInfoURL &ciurl = *(KaxCodecInfoURL*)el3;
ciurl.ReadData( p_sys->es->I_O() ); // ciurl.ReadData( p_sys->es->I_O() );
tk.psz_codec_info_url = strdup( string( ciurl ).c_str() ); // tk.psz_codec_info_url = strdup( string( ciurl ).c_str() );
msg_Dbg( p_input, "| | | + Track Codec Info URL=%s", tk.psz_codec_info_url ); // msg_Dbg( p_input, "| | | + Track Codec Info URL=%s", tk.psz_codec_info_url );
} // }
else if( EbmlId( *el3 ) == KaxCodecDownloadURL::ClassInfos.GlobalId ) // else if( EbmlId( *el3 ) == KaxCodecDownloadURL::ClassInfos.GlobalId )
{ // {
KaxCodecDownloadURL &cdurl = *(KaxCodecDownloadURL*)el3; // KaxCodecDownloadURL &cdurl = *(KaxCodecDownloadURL*)el3;
cdurl.ReadData( p_sys->es->I_O() ); // cdurl.ReadData( p_sys->es->I_O() );
tk.psz_codec_download_url = strdup( string( cdurl ).c_str() ); // tk.psz_codec_download_url = strdup( string( cdurl ).c_str() );
msg_Dbg( p_input, "| | | + Track Codec Info URL=%s", tk.psz_codec_download_url ); // msg_Dbg( p_input, "| | | + Track Codec Info URL=%s", tk.psz_codec_download_url );
} // }
else if( EbmlId( *el3 ) == KaxCodecDecodeAll::ClassInfos.GlobalId ) // else if( EbmlId( *el3 ) == KaxCodecDecodeAll::ClassInfos.GlobalId )
{ // {
KaxCodecDecodeAll &cdall = *(KaxCodecDecodeAll*)el3; // KaxCodecDecodeAll &cdall = *(KaxCodecDecodeAll*)el3;
cdall.ReadData( p_sys->es->I_O() ); // cdall.ReadData( p_sys->es->I_O() );
msg_Dbg( p_input, "| | | + Track Codec Decode All=%u <== UNUSED", uint8( cdall ) ); // msg_Dbg( p_input, "| | | + Track Codec Decode All=%u <== UNUSED", uint8( cdall ) );
} // }
else if( EbmlId( *el3 ) == KaxTrackOverlay::ClassInfos.GlobalId ) // else if( EbmlId( *el3 ) == KaxTrackOverlay::ClassInfos.GlobalId )
{ // {
KaxTrackOverlay &tovr = *(KaxTrackOverlay*)el3; // KaxTrackOverlay &tovr = *(KaxTrackOverlay*)el3;
tovr.ReadData( p_sys->es->I_O() ); // tovr.ReadData( p_sys->es->I_O() );
msg_Dbg( p_input, "| | | + Track Overlay=%u <== UNUSED", uint32( tovr ) ); // msg_Dbg( p_input, "| | | + Track Overlay=%u <== UNUSED", uint32( tovr ) );
} // }
else if( EbmlId( *el3 ) == KaxTrackVideo::ClassInfos.GlobalId ) else if( EbmlId( *el3 ) == KaxTrackVideo::ClassInfos.GlobalId )
{ {
msg_Dbg( p_input, "| | | + Track Video" ); msg_Dbg( p_input, "| | | + Track Video" );
...@@ -698,21 +698,22 @@ static int Open( vlc_object_t * p_this ) ...@@ -698,21 +698,22 @@ static int Open( vlc_object_t * p_this )
while( ( el4 = p_sys->ep->Get() ) != NULL ) while( ( el4 = p_sys->ep->Get() ) != NULL )
{ {
if( EbmlId( *el4 ) == KaxVideoFlagInterlaced::ClassInfos.GlobalId ) // if( EbmlId( *el4 ) == KaxVideoFlagInterlaced::ClassInfos.GlobalId )
{ // {
KaxVideoFlagInterlaced &fint = *(KaxVideoFlagInterlaced*)el4; // KaxVideoFlagInterlaced &fint = *(KaxVideoFlagInterlaced*)el4;
fint.ReadData( p_sys->es->I_O() ); // fint.ReadData( p_sys->es->I_O() );
msg_Dbg( p_input, "| | | | + Track Video Interlaced=%u", uint8( fint ) ); // msg_Dbg( p_input, "| | | | + Track Video Interlaced=%u", uint8( fint ) );
} // }
else if( EbmlId( *el4 ) == KaxVideoStereoMode::ClassInfos.GlobalId ) // else if( EbmlId( *el4 ) == KaxVideoStereoMode::ClassInfos.GlobalId )
{ // {
KaxVideoStereoMode &stereo = *(KaxVideoStereoMode*)el4; // KaxVideoStereoMode &stereo = *(KaxVideoStereoMode*)el4;
stereo.ReadData( p_sys->es->I_O() ); // stereo.ReadData( p_sys->es->I_O() );
msg_Dbg( p_input, "| | | | + Track Video Stereo Mode=%u", uint8( stereo ) ); // msg_Dbg( p_input, "| | | | + Track Video Stereo Mode=%u", uint8( stereo ) );
} // }
else if( EbmlId( *el4 ) == KaxVideoPixelWidth::ClassInfos.GlobalId ) // else
if( EbmlId( *el4 ) == KaxVideoPixelWidth::ClassInfos.GlobalId )
{ {
KaxVideoPixelWidth &vwidth = *(KaxVideoPixelWidth*)el4; KaxVideoPixelWidth &vwidth = *(KaxVideoPixelWidth*)el4;
vwidth.ReadData( p_sys->es->I_O() ); vwidth.ReadData( p_sys->es->I_O() );
...@@ -752,28 +753,28 @@ static int Open( vlc_object_t * p_this ) ...@@ -752,28 +753,28 @@ static int Open( vlc_object_t * p_this )
tk.f_fps = float( vfps ); tk.f_fps = float( vfps );
msg_Dbg( p_input, " | | | + fps=%f", float( vfps ) ); msg_Dbg( p_input, " | | | + fps=%f", float( vfps ) );
} }
else if( EbmlId( *el4 ) == KaxVideoDisplayUnit::ClassInfos.GlobalId ) // else if( EbmlId( *el4 ) == KaxVideoDisplayUnit::ClassInfos.GlobalId )
{ // {
KaxVideoDisplayUnit &vdmode = *(KaxVideoDisplayUnit*)el4; // KaxVideoDisplayUnit &vdmode = *(KaxVideoDisplayUnit*)el4;
vdmode.ReadData( p_sys->es->I_O() ); // vdmode.ReadData( p_sys->es->I_O() );
msg_Dbg( p_input, "| | | | + Track Video Display Unit=%s", // msg_Dbg( p_input, "| | | | + Track Video Display Unit=%s",
uint8( vdmode ) == 0 ? "pixels" : ( uint8( vdmode ) == 1 ? "centimeters": "inches" ) ); // uint8( vdmode ) == 0 ? "pixels" : ( uint8( vdmode ) == 1 ? "centimeters": "inches" ) );
} // }
else if( EbmlId( *el4 ) == KaxVideoAspectRatio::ClassInfos.GlobalId ) // else if( EbmlId( *el4 ) == KaxVideoAspectRatio::ClassInfos.GlobalId )
{ // {
KaxVideoAspectRatio &ratio = *(KaxVideoAspectRatio*)el4; // KaxVideoAspectRatio &ratio = *(KaxVideoAspectRatio*)el4;
ratio.ReadData( p_sys->es->I_O() ); // ratio.ReadData( p_sys->es->I_O() );
msg_Dbg( p_input, " | | | + Track Video Aspect Ratio Type=%u", uint8( ratio ) ); // msg_Dbg( p_input, " | | | + Track Video Aspect Ratio Type=%u", uint8( ratio ) );
} // }
else if( EbmlId( *el4 ) == KaxVideoGamma::ClassInfos.GlobalId ) // else if( EbmlId( *el4 ) == KaxVideoGamma::ClassInfos.GlobalId )
{ // {
KaxVideoGamma &gamma = *(KaxVideoGamma*)el4; // KaxVideoGamma &gamma = *(KaxVideoGamma*)el4;
gamma.ReadData( p_sys->es->I_O() ); // gamma.ReadData( p_sys->es->I_O() );
msg_Dbg( p_input, " | | | + fps=%f", float( gamma ) ); // msg_Dbg( p_input, " | | | + fps=%f", float( gamma ) );
} // }
else else
{ {
msg_Dbg( p_input, "| | | | + Unknown (%s)", typeid(*el4).name() ); msg_Dbg( p_input, "| | | | + Unknown (%s)", typeid(*el4).name() );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment