-@@ -4,9 +4,10 @@
- $(top_srcdir)/include/neaacdec.h\r
- \r
- libfaad_la_LIBADD = -lm\r
--libfaad_la_LDFLAGS = -version-info 1:0:0\r
-+libfaad_la_LDFLAGS = -version-info 1:0:1\r
- \r
- libfaad_la_SOURCES = bits.c cfft.c decoder.c drc.c \\r
-+backward_compat.c \\r
- drm_dec.c error.c filtbank.c \\r
- ic_predict.c is.c lt_predict.c mdct.c mp4.c ms.c output.c pns.c \\r
- ps_dec.c ps_syntax.c \\r
---- faad2/libfaad/backward_compat.c.orig 1970-01-01 00:00:00.000000000 +0000
-+++ faad2/libfaad/backward_compat.c 2007-01-16 19:22:17.000000000 +0000
-@@ -0,0 +1,61 @@
-+#include "common.h"
-+#include "structs.h"
-+#include "decoder.h"
+@@ -4,7 +4,7 @@
+ $(top_srcdir)/include/neaacdec.h
+
+ libfaad_la_LIBADD = -lm
+-libfaad_la_LDFLAGS = -version-info 1:0:0
++libfaad_la_LDFLAGS = -version-info 1:0:1
+
+ libfaad_la_SOURCES = bits.c cfft.c decoder.c drc.c \
+ drm_dec.c error.c filtbank.c \
+--- faad2/libfaad/decoder.c.orig 2007-11-01 13:33:30.000000000 +0100
++++ faad2/libfaad/decoder.c 2007-11-04 12:36:41.315350439 +0100
+@@ -1115,3 +1115,47 @@
+
+ return NULL;
+ }
++
++#ifndef NO_BACKWARD_COMPAT
++# define ALIAS(type, func, target) type NEAACDECAPI func __attribute__((alias(#target)))
++
++ALIAS(char*, faacDecGetErrorMessage(uint8_t errcode),
++ NeAACDecGetErrorMessage);
++
++ALIAS(uint8_t, faacDecSetConfiguration(NeAACDecHandle hDecoder,
++ NeAACDecConfigurationPtr config),
++ NeAACDecSetConfiguration);
++
++ALIAS(NeAACDecConfigurationPtr, faacDecGetCurrentConfiguration(NeAACDecHandle hDecoder),
++ NeAACDecGetCurrentConfiguration);
++
++ALIAS(int32_t, faacDecInit(NeAACDecHandle hDecoder, uint8_t *buffer,
++ uint32_t buffer_size, uint32_t *samplerate, uint8_t *channels),
++ NeAACDecInit);
++
++ALIAS(int8_t, faacDecInit2(NeAACDecHandle hDecoder, uint8_t *pBuffer,
++ uint32_t SizeOfDecoderSpecificInfo,
++ uint32_t *samplerate, uint8_t *channels),
++ NeAACDecInit2);