changeset 2895:8fe1dc88294a libavcodec

Fix some #ifdef to allow building amr_wb alone. patch by Michel Bardiaux < mbardiaux -- dot -- mediaxim -- dot -- be >
author diego
date Sat, 24 Sep 2005 17:42:56 +0000
parents 26f8974c3d66
children e1dfc65af0fb
files amr.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/amr.c	Wed Sep 21 23:18:52 2005 +0000
+++ b/amr.c	Sat Sep 24 17:42:56 2005 +0000
@@ -326,7 +326,7 @@
 }
 
 
-#else /* Float point version*/
+#elif defined(AMR_NB) /* Float point version*/
 
 typedef struct AMRContext {
     int frameCount;
@@ -457,6 +457,8 @@
 
 #endif
 
+#if defined(AMR_NB) || defined(AMR_NB_FIXED)
+
 AVCodec amr_nb_decoder =
 {
     "amr_nb",
@@ -481,6 +483,8 @@
     NULL,
 };
 
+#endif
+
 /* -----------AMR wideband ------------*/
 #ifdef AMR_WB