[FFmpeg-cvslog] libopencore-amrwb: Make AMR-WB ifdeffery more precise
Diego Biurrun
git at videolan.org
Tue Feb 19 01:25:07 CET 2013
ffmpeg | branch: release/1.1 | Diego Biurrun <diego at biurrun.de> | Sat Feb 16 23:05:04 2013 +0100| [a23d6ea1e443c34e3d103a5097e673d12e80a814] | committer: Luca Barbato
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 at libav.org
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
(cherry picked from commit ed89cad6aa04bbd692b3eb21c0e0bb56aca77130)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a23d6ea1e443c34e3d103a5097e673d12e80a814
---
libavcodec/libopencore-amr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c
index 8afc927..fdd7de9 100644
--- a/libavcodec/libopencore-amr.c
+++ b/libavcodec/libopencore-amr.c
@@ -313,7 +313,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>
@@ -393,4 +393,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 */
More information about the ffmpeg-cvslog
mailing list