Browse code

libopencore-amrwb: Make AMR-WB ifdeffery more precise

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>

Diego Biurrun authored on 2013/02/17 07:05:04
Showing 1 changed files
... ...
@@ -309,7 +309,7 @@ AVCodec ff_libopencore_amrnb_encoder = {
309 309
 #endif /* CONFIG_LIBOPENCORE_AMRNB */
310 310
 
311 311
 /* -----------AMR wideband ------------*/
312
-#if CONFIG_LIBOPENCORE_AMRWB
312
+#if CONFIG_LIBOPENCORE_AMRWB_DECODER
313 313
 
314 314
 #include <opencore-amrwb/dec_if.h>
315 315
 #include <opencore-amrwb/if_rom.h>
... ...
@@ -385,4 +385,4 @@ AVCodec ff_libopencore_amrwb_decoder = {
385 385
     .long_name      = NULL_IF_CONFIG_SMALL("OpenCORE AMR-WB (Adaptive Multi-Rate Wide-Band)"),
386 386
 };
387 387
 
388
-#endif /* CONFIG_LIBOPENCORE_AMRWB */
388
+#endif /* CONFIG_LIBOPENCORE_AMRWB_DECODER */