summaryrefslogtreecommitdiffstats
path: root/multimedia/vlc/files
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2004-03-03 17:53:47 +0000
committerdinoex <dinoex@FreeBSD.org>2004-03-03 17:53:47 +0000
commit403afb179afe22eeb30bcf5a4a0ddac431c9e52b (patch)
tree9644543a4854b1aaca82b3b89c444c9cecd22ec2 /multimedia/vlc/files
parentb7c11bf227ee98316bee7bf355917d555b135e9b (diff)
downloadFreeBSD-ports-403afb179afe22eeb30bcf5a4a0ddac431c9e52b.zip
FreeBSD-ports-403afb179afe22eeb30bcf5a4a0ddac431c9e52b.tar.gz
- use libmad
- new options: WITH_AUTODETECT WITH_LIBMPEG2 WITH_LIBMATROSKA WITHOUT_LIBID3TAG - clean dependencies from ports/63583 63583 Michael Johnson - install 2 man pages - better gnome support - support for libmatroska - new options: WITH_GNOME WITH_ESOUND WITH_AALIB WITH_CDDB WITH_GGI WITH_LIBTHEORA WITH_LIVEMEDIA WITH_SPEEX WITH_SVGALIB WITH_XOSD WITH_OPTIMIZED_CFLAGS - dropped cause of bad dependency list: WANT_GNOME does not work here linke in mplayer.
Diffstat (limited to 'multimedia/vlc/files')
-rw-r--r--multimedia/vlc/files/patch-modules-demux-mkv.cpp198
-rw-r--r--multimedia/vlc/files/theora.c-patch11
2 files changed, 209 insertions, 0 deletions
diff --git a/multimedia/vlc/files/patch-modules-demux-mkv.cpp b/multimedia/vlc/files/patch-modules-demux-mkv.cpp
new file mode 100644
index 0000000..6b46a14
--- /dev/null
+++ b/multimedia/vlc/files/patch-modules-demux-mkv.cpp
@@ -0,0 +1,198 @@
+diff -Nur modules/demux/mkv.cpp.orig modules/demux/mkv.cpp
+--- modules/demux/mkv.cpp.orig 2003-12-22 15:27:37.000000000 +0100
++++ modules/demux/mkv.cpp 2004-01-21 17:02:42.000000000 +0100
+@@ -543,15 +543,15 @@
+ msg_Dbg( p_input, "| | | + Track Type=%s",
+ psz_type );
+ }
+- else if( EbmlId( *el3 ) == KaxTrackFlagEnabled::ClassInfos.GlobalId )
+- {
+- KaxTrackFlagEnabled &fenb = *(KaxTrackFlagEnabled*)el3;
+- fenb.ReadData( p_sys->es->I_O() );
+-
+- tk.b_enabled = uint32( fenb );
+- msg_Dbg( p_input, "| | | + Track Enabled=%u",
+- uint32( fenb ) );
+- }
++// else if( EbmlId( *el3 ) == KaxTrackFlagEnabled::ClassInfos.GlobalId )
++// {
++// KaxTrackFlagEnabled &fenb = *(KaxTrackFlagEnabled*)el3;
++// fenb.ReadData( p_sys->es->I_O() );
++
++// tk.b_enabled = uint32( fenb );
++// msg_Dbg( p_input, "| | | + Track Enabled=%u",
++// uint32( fenb ) );
++// }
+ else if( EbmlId( *el3 ) == KaxTrackFlagDefault::ClassInfos.GlobalId )
+ {
+ KaxTrackFlagDefault &fdef = *(KaxTrackFlagDefault*)el3;
+@@ -651,44 +651,44 @@
+ tk.psz_codec_name = UTF8ToStr( UTFstring( cname ) );
+ msg_Dbg( p_input, "| | | + Track Codec Name=%s", tk.psz_codec_name );
+ }
+- else if( EbmlId( *el3 ) == KaxCodecSettings::ClassInfos.GlobalId )
+- {
+- KaxCodecSettings &cset = *(KaxCodecSettings*)el3;
+- cset.ReadData( p_sys->es->I_O() );
+-
+- tk.psz_codec_settings = UTF8ToStr( UTFstring( cset ) );
+- msg_Dbg( p_input, "| | | + Track Codec Settings=%s", tk.psz_codec_settings );
+- }
+- else if( EbmlId( *el3 ) == KaxCodecInfoURL::ClassInfos.GlobalId )
+- {
+- KaxCodecInfoURL &ciurl = *(KaxCodecInfoURL*)el3;
+- ciurl.ReadData( p_sys->es->I_O() );
+-
+- tk.psz_codec_info_url = strdup( string( ciurl ).c_str() );
+- msg_Dbg( p_input, "| | | + Track Codec Info URL=%s", tk.psz_codec_info_url );
+- }
+- else if( EbmlId( *el3 ) == KaxCodecDownloadURL::ClassInfos.GlobalId )
+- {
+- KaxCodecDownloadURL &cdurl = *(KaxCodecDownloadURL*)el3;
+- cdurl.ReadData( p_sys->es->I_O() );
+-
+- tk.psz_codec_download_url = strdup( string( cdurl ).c_str() );
+- msg_Dbg( p_input, "| | | + Track Codec Info URL=%s", tk.psz_codec_download_url );
+- }
+- else if( EbmlId( *el3 ) == KaxCodecDecodeAll::ClassInfos.GlobalId )
+- {
+- KaxCodecDecodeAll &cdall = *(KaxCodecDecodeAll*)el3;
+- cdall.ReadData( p_sys->es->I_O() );
+-
+- msg_Dbg( p_input, "| | | + Track Codec Decode All=%u <== UNUSED", uint8( cdall ) );
+- }
+- else if( EbmlId( *el3 ) == KaxTrackOverlay::ClassInfos.GlobalId )
+- {
+- KaxTrackOverlay &tovr = *(KaxTrackOverlay*)el3;
+- tovr.ReadData( p_sys->es->I_O() );
++// else if( EbmlId( *el3 ) == KaxCodecSettings::ClassInfos.GlobalId )
++// {
++// KaxCodecSettings &cset = *(KaxCodecSettings*)el3;
++// cset.ReadData( p_sys->es->I_O() );
++
++// tk.psz_codec_settings = UTF8ToStr( UTFstring( cset ) );
++// msg_Dbg( p_input, "| | | + Track Codec Settings=%s", tk.psz_codec_settings );
++// }
++// else if( EbmlId( *el3 ) == KaxCodecInfoURL::ClassInfos.GlobalId )
++// {
++// KaxCodecInfoURL &ciurl = *(KaxCodecInfoURL*)el3;
++// ciurl.ReadData( p_sys->es->I_O() );
++
++// tk.psz_codec_info_url = strdup( string( ciurl ).c_str() );
++// msg_Dbg( p_input, "| | | + Track Codec Info URL=%s", tk.psz_codec_info_url );
++// }
++// else if( EbmlId( *el3 ) == KaxCodecDownloadURL::ClassInfos.GlobalId )
++// {
++// KaxCodecDownloadURL &cdurl = *(KaxCodecDownloadURL*)el3;
++// cdurl.ReadData( p_sys->es->I_O() );
++
++// tk.psz_codec_download_url = strdup( string( cdurl ).c_str() );
++// msg_Dbg( p_input, "| | | + Track Codec Info URL=%s", tk.psz_codec_download_url );
++// }
++// else if( EbmlId( *el3 ) == KaxCodecDecodeAll::ClassInfos.GlobalId )
++// {
++// KaxCodecDecodeAll &cdall = *(KaxCodecDecodeAll*)el3;
++// cdall.ReadData( p_sys->es->I_O() );
++
++// msg_Dbg( p_input, "| | | + Track Codec Decode All=%u <== UNUSED", uint8( cdall ) );
++// }
++// else if( EbmlId( *el3 ) == KaxTrackOverlay::ClassInfos.GlobalId )
++// {
++// KaxTrackOverlay &tovr = *(KaxTrackOverlay*)el3;
++// 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 )
+ {
+ msg_Dbg( p_input, "| | | + Track Video" );
+@@ -698,21 +698,22 @@
+
+ while( ( el4 = p_sys->ep->Get() ) != NULL )
+ {
+- if( EbmlId( *el4 ) == KaxVideoFlagInterlaced::ClassInfos.GlobalId )
+- {
+- KaxVideoFlagInterlaced &fint = *(KaxVideoFlagInterlaced*)el4;
+- fint.ReadData( p_sys->es->I_O() );
+-
+- msg_Dbg( p_input, "| | | | + Track Video Interlaced=%u", uint8( fint ) );
+- }
+- else if( EbmlId( *el4 ) == KaxVideoStereoMode::ClassInfos.GlobalId )
+- {
+- KaxVideoStereoMode &stereo = *(KaxVideoStereoMode*)el4;
+- stereo.ReadData( p_sys->es->I_O() );
+-
+- msg_Dbg( p_input, "| | | | + Track Video Stereo Mode=%u", uint8( stereo ) );
+- }
+- else if( EbmlId( *el4 ) == KaxVideoPixelWidth::ClassInfos.GlobalId )
++// if( EbmlId( *el4 ) == KaxVideoFlagInterlaced::ClassInfos.GlobalId )
++// {
++// KaxVideoFlagInterlaced &fint = *(KaxVideoFlagInterlaced*)el4;
++// fint.ReadData( p_sys->es->I_O() );
++
++// msg_Dbg( p_input, "| | | | + Track Video Interlaced=%u", uint8( fint ) );
++// }
++// else if( EbmlId( *el4 ) == KaxVideoStereoMode::ClassInfos.GlobalId )
++// {
++// KaxVideoStereoMode &stereo = *(KaxVideoStereoMode*)el4;
++// stereo.ReadData( p_sys->es->I_O() );
++
++// msg_Dbg( p_input, "| | | | + Track Video Stereo Mode=%u", uint8( stereo ) );
++// }
++// else
++ if( EbmlId( *el4 ) == KaxVideoPixelWidth::ClassInfos.GlobalId )
+ {
+ KaxVideoPixelWidth &vwidth = *(KaxVideoPixelWidth*)el4;
+ vwidth.ReadData( p_sys->es->I_O() );
+@@ -752,28 +753,28 @@
+ tk.f_fps = float( vfps );
+ msg_Dbg( p_input, " | | | + fps=%f", float( vfps ) );
+ }
+- else if( EbmlId( *el4 ) == KaxVideoDisplayUnit::ClassInfos.GlobalId )
+- {
+- KaxVideoDisplayUnit &vdmode = *(KaxVideoDisplayUnit*)el4;
+- vdmode.ReadData( p_sys->es->I_O() );
++// else if( EbmlId( *el4 ) == KaxVideoDisplayUnit::ClassInfos.GlobalId )
++// {
++// KaxVideoDisplayUnit &vdmode = *(KaxVideoDisplayUnit*)el4;
++// vdmode.ReadData( p_sys->es->I_O() );
++
++// msg_Dbg( p_input, "| | | | + Track Video Display Unit=%s",
++// uint8( vdmode ) == 0 ? "pixels" : ( uint8( vdmode ) == 1 ? "centimeters": "inches" ) );
++// }
++// else if( EbmlId( *el4 ) == KaxVideoAspectRatio::ClassInfos.GlobalId )
++// {
++// KaxVideoAspectRatio &ratio = *(KaxVideoAspectRatio*)el4;
++// ratio.ReadData( p_sys->es->I_O() );
++
++// msg_Dbg( p_input, " | | | + Track Video Aspect Ratio Type=%u", uint8( ratio ) );
++// }
++// else if( EbmlId( *el4 ) == KaxVideoGamma::ClassInfos.GlobalId )
++// {
++// KaxVideoGamma &gamma = *(KaxVideoGamma*)el4;
++// gamma.ReadData( p_sys->es->I_O() );
+
+- msg_Dbg( p_input, "| | | | + Track Video Display Unit=%s",
+- uint8( vdmode ) == 0 ? "pixels" : ( uint8( vdmode ) == 1 ? "centimeters": "inches" ) );
+- }
+- else if( EbmlId( *el4 ) == KaxVideoAspectRatio::ClassInfos.GlobalId )
+- {
+- KaxVideoAspectRatio &ratio = *(KaxVideoAspectRatio*)el4;
+- ratio.ReadData( p_sys->es->I_O() );
+-
+- msg_Dbg( p_input, " | | | + Track Video Aspect Ratio Type=%u", uint8( ratio ) );
+- }
+- else if( EbmlId( *el4 ) == KaxVideoGamma::ClassInfos.GlobalId )
+- {
+- KaxVideoGamma &gamma = *(KaxVideoGamma*)el4;
+- gamma.ReadData( p_sys->es->I_O() );
+-
+- msg_Dbg( p_input, " | | | + fps=%f", float( gamma ) );
+- }
++// msg_Dbg( p_input, " | | | + fps=%f", float( gamma ) );
++// }
+ else
+ {
+ msg_Dbg( p_input, "| | | | + Unknown (%s)", typeid(*el4).name() );
diff --git a/multimedia/vlc/files/theora.c-patch b/multimedia/vlc/files/theora.c-patch
new file mode 100644
index 0000000..35919e1
--- /dev/null
+++ b/multimedia/vlc/files/theora.c-patch
@@ -0,0 +1,11 @@
+--- modules/codec/theora.c.orig Sun Feb 29 22:28:09 2004
++++ modules/codec/theora.c Sun Feb 29 22:28:23 2004
+@@ -31,7 +31,7 @@
+ #include <ogg/ogg.h>
+
+ #include <theora/theora.h>
+-
++extern int theora_encode_tables(theora_state *t, ogg_packet *op);
+ /*****************************************************************************
+ * decoder_sys_t : theora decoder descriptor
+ *****************************************************************************/
OpenPOWER on IntegriCloud