summaryrefslogtreecommitdiffstats
path: root/vlc/build/vlc-0.8.6a-faad2.patch
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2007-04-25 20:52:04 +0000
committer Eric Hameleers <alien@slackware.com>2007-04-25 20:52:04 +0000
commit85dfb52d5a82e4fce13730f0e54f56fdb301245a (patch)
tree68f06d1a0570774bb5fda451cdbbe325ca25e6ae /vlc/build/vlc-0.8.6a-faad2.patch
parent6b5df2236c79420df5f381f1013c8765e6056ed9 (diff)
downloadasb-85dfb52d5a82e4fce13730f0e54f56fdb301245a.tar.gz
asb-85dfb52d5a82e4fce13730f0e54f56fdb301245a.tar.xz
Initial revision
Diffstat (limited to 'vlc/build/vlc-0.8.6a-faad2.patch')
-rw-r--r--vlc/build/vlc-0.8.6a-faad2.patch101
1 files changed, 101 insertions, 0 deletions
diff --git a/vlc/build/vlc-0.8.6a-faad2.patch b/vlc/build/vlc-0.8.6a-faad2.patch
new file mode 100644
index 00000000..94a803c0
--- /dev/null
+++ b/vlc/build/vlc-0.8.6a-faad2.patch
@@ -0,0 +1,101 @@
+diff -Naupr vlc-0.8.6a.orig/modules/codec/faad.c vlc-0.8.6a/modules/codec/faad.c
+--- vlc-0.8.6a.orig/modules/codec/faad.c 2007-01-03 19:27:59.000000000 +0100
++++ vlc-0.8.6a/modules/codec/faad.c 2007-01-08 19:52:35.000000000 +0100
+@@ -55,7 +55,7 @@ static void DoReordering( decoder_t *, u
+ struct decoder_sys_t
+ {
+ /* faad handler */
+- faacDecHandle *hfaad;
++ NeAACDecHandle *hfaad;
+
+ /* samples */
+ audio_date_t date;
+@@ -95,7 +95,7 @@ static int Open( vlc_object_t *p_this )
+ {
+ decoder_t *p_dec = (decoder_t*)p_this;
+ decoder_sys_t *p_sys = p_dec->p_sys;
+- faacDecConfiguration *cfg;
++ NeAACDecConfiguration *cfg;
+
+ if( p_dec->fmt_in.i_codec != VLC_FOURCC('m','p','4','a') )
+ {
+@@ -111,7 +111,7 @@ static int Open( vlc_object_t *p_this )
+ }
+
+ /* Open a faad context */
+- if( ( p_sys->hfaad = faacDecOpen() ) == NULL )
++ if( ( p_sys->hfaad = NeAACDecOpen() ) == NULL )
+ {
+ msg_Err( p_dec, "cannot initialize faad" );
+ return VLC_EGENERIC;
+@@ -136,7 +136,7 @@ static int Open( vlc_object_t *p_this )
+ unsigned long i_rate;
+ unsigned char i_channels;
+
+- if( faacDecInit2( p_sys->hfaad, p_dec->fmt_in.p_extra,
++ if( NeAACDecInit2( p_sys->hfaad, p_dec->fmt_in.p_extra,
+ p_dec->fmt_in.i_extra,
+ &i_rate, &i_channels ) < 0 )
+ {
+@@ -155,12 +155,12 @@ static int Open( vlc_object_t *p_this )
+ }
+
+ /* Set the faad config */
+- cfg = faacDecGetCurrentConfiguration( p_sys->hfaad );
++ cfg = NeAACDecGetCurrentConfiguration( p_sys->hfaad );
+ if (p_this->p_libvlc->i_cpu & CPU_CAPABILITY_FPU)
+ cfg->outputFormat = FAAD_FMT_FLOAT;
+ else
+ cfg->outputFormat = FAAD_FMT_16BIT;
+- faacDecSetConfiguration( p_sys->hfaad, cfg );
++ NeAACDecSetConfiguration( p_sys->hfaad, cfg );
+
+ /* buffer */
+ p_sys->i_buffer = p_sys->i_buffer_size = 0;
+@@ -212,7 +212,7 @@ static aout_buffer_t *DecodeBlock( decod
+ unsigned long i_rate;
+ unsigned char i_channels;
+
+- if( faacDecInit2( p_sys->hfaad, p_dec->fmt_in.p_extra,
++ if( NeAACDecInit2( p_sys->hfaad, p_dec->fmt_in.p_extra,
+ p_dec->fmt_in.i_extra,
+ &i_rate, &i_channels ) >= 0 )
+ {
+@@ -228,7 +228,7 @@ static aout_buffer_t *DecodeBlock( decod
+ unsigned char i_channels;
+
+ /* Init faad with the first frame */
+- if( faacDecInit( p_sys->hfaad,
++ if( NeAACDecInit( p_sys->hfaad,
+ p_sys->p_buffer, p_sys->i_buffer,
+ &i_rate, &i_channels ) < 0 )
+ {
+@@ -257,16 +257,16 @@ static aout_buffer_t *DecodeBlock( decod
+ if( p_sys->i_buffer )
+ {
+ void *samples;
+- faacDecFrameInfo frame;
++ NeAACDecFrameInfo frame;
+ aout_buffer_t *p_out;
+ int i, j;
+
+- samples = faacDecDecode( p_sys->hfaad, &frame,
++ samples = NeAACDecDecode( p_sys->hfaad, &frame,
+ p_sys->p_buffer, p_sys->i_buffer );
+
+ if( frame.error > 0 )
+ {
+- msg_Warn( p_dec, "%s", faacDecGetErrorMessage( frame.error ) );
++ msg_Warn( p_dec, "%s", NeAACDecGetErrorMessage( frame.error ) );
+
+ /* Flush the buffer */
+ p_sys->i_buffer = 0;
+@@ -403,7 +403,7 @@ static void Close( vlc_object_t *p_this
+ decoder_t *p_dec = (decoder_t *)p_this;
+ decoder_sys_t *p_sys = p_dec->p_sys;
+
+- faacDecClose( p_sys->hfaad );
++ NeAACDecClose( p_sys->hfaad );
+ if( p_sys->p_buffer ) free( p_sys->p_buffer );
+ free( p_sys );
+ }