aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-02-16 23:05:03 +0100
committerLuca Barbato <lu_zero@gentoo.org>2013-02-17 12:03:25 +0100
commite6bda9a9fd86505927a2e095e495eae104860701 (patch)
tree1529a1ff35ca0463c88508202be449d621432272 /libavcodec
parent56632fef65c0cb6946ed3648ded3d7b82e5c5c17 (diff)
downloadffmpeg-e6bda9a9fd86505927a2e095e495eae104860701.tar.gz
libopencore-amr: Conditionally compile decoder and encoder bits
CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libopencore-amr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c
index eb0c222500..2a06e3ed68 100644
--- a/libavcodec/libopencore-amr.c
+++ b/libavcodec/libopencore-amr.c
@@ -60,6 +60,7 @@ typedef struct AMRContext {
AudioFrameQueue afq;
} AMRContext;
+#if CONFIG_LIBOPENCORE_AMRNB_DECODER
static av_cold int amr_nb_decode_init(AVCodecContext *avctx)
{
AMRContext *s = avctx->priv_data;
@@ -137,7 +138,9 @@ AVCodec ff_libopencore_amrnb_decoder = {
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("OpenCORE AMR-NB (Adaptive Multi-Rate Narrow-Band)"),
};
+#endif /* CONFIG_LIBOPENCORE_AMRNB_DECODER */
+#if CONFIG_LIBOPENCORE_AMRNB_ENCODER
/* Common code for fixed and float version*/
typedef struct AMR_bitrates {
int rate;
@@ -301,8 +304,9 @@ AVCodec ff_libopencore_amrnb_encoder = {
.long_name = NULL_IF_CONFIG_SMALL("OpenCORE AMR-NB (Adaptive Multi-Rate Narrow-Band)"),
.priv_class = &class,
};
+#endif /* CONFIG_LIBOPENCORE_AMRNB_ENCODER */
-#endif
+#endif /* CONFIG_LIBOPENCORE_AMRNB */
/* -----------AMR wideband ------------*/
#if CONFIG_LIBOPENCORE_AMRWB