libopencore-amrwb: Make AMR-WB ifdeffery more precise
authorDiego Biurrun <diego@biurrun.de>
Sat, 16 Feb 2013 22:05:04 +0000 (23:05 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 17 Feb 2013 11:03:25 +0000 (12:03 +0100)
The library might provide an encoder in the future, so it's better to
check for the presence of the decoder rather than just the library.

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/libopencore-amr.c

index 2a06e3e..d3bd743 100644 (file)
@@ -309,7 +309,7 @@ AVCodec ff_libopencore_amrnb_encoder = {
 #endif /* CONFIG_LIBOPENCORE_AMRNB */
 
 /* -----------AMR wideband ------------*/
-#if CONFIG_LIBOPENCORE_AMRWB
+#if CONFIG_LIBOPENCORE_AMRWB_DECODER
 
 #include <opencore-amrwb/dec_if.h>
 #include <opencore-amrwb/if_rom.h>
@@ -385,4 +385,4 @@ AVCodec ff_libopencore_amrwb_decoder = {
     .long_name      = NULL_IF_CONFIG_SMALL("OpenCORE AMR-WB (Adaptive Multi-Rate Wide-Band)"),
 };
 
-#endif /* CONFIG_LIBOPENCORE_AMRWB */
+#endif /* CONFIG_LIBOPENCORE_AMRWB_DECODER */