1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

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>
This commit is contained in:
Diego Biurrun
2013-02-16 23:05:04 +01:00
committed by Luca Barbato
parent e6bda9a9fd
commit 8837f4396a

View File

@@ -309,7 +309,7 @@ AVCodec ff_libopencore_amrnb_encoder = {
#endif /* CONFIG_LIBOPENCORE_AMRNB */ #endif /* CONFIG_LIBOPENCORE_AMRNB */
/* -----------AMR wideband ------------*/ /* -----------AMR wideband ------------*/
#if CONFIG_LIBOPENCORE_AMRWB #if CONFIG_LIBOPENCORE_AMRWB_DECODER
#include <opencore-amrwb/dec_if.h> #include <opencore-amrwb/dec_if.h>
#include <opencore-amrwb/if_rom.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)"), .long_name = NULL_IF_CONFIG_SMALL("OpenCORE AMR-WB (Adaptive Multi-Rate Wide-Band)"),
}; };
#endif /* CONFIG_LIBOPENCORE_AMRWB */ #endif /* CONFIG_LIBOPENCORE_AMRWB_DECODER */