aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libamr.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-05-15 19:03:45 +0000
committerDiego Biurrun <diego@biurrun.de>2009-05-15 19:03:45 +0000
commite09989be4547c8178cd0c174c20c44e919e94a5d (patch)
treeb6ef7e1849f156d6261b9b46a69756b347d0eba4 /libavcodec/libamr.c
parent9c0ef69af73fd5b50f49895767e587f64bd45f66 (diff)
downloadffmpeg-e09989be4547c8178cd0c174c20c44e919e94a5d.tar.gz
Surround AMR_WB encoding code by appropriate #ifdefs.
This will help support the opencore AMR library. Originally committed as revision 18847 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libamr.c')
-rw-r--r--libavcodec/libamr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/libamr.c b/libavcodec/libamr.c
index a13facb152..98fcc2d28f 100644
--- a/libavcodec/libamr.c
+++ b/libavcodec/libamr.c
@@ -309,6 +309,8 @@ typedef struct AMRWBContext {
Word16 allow_dtx;
} AMRWBContext;
+#if CONFIG_LIBAMR_WB_ENCODER
+
#include <amrwb/enc_if.h>
static int getWBBitrateMode(int bitrate)
@@ -409,6 +411,8 @@ AVCodec libamr_wb_encoder =
.long_name = NULL_IF_CONFIG_SMALL("libamr-wb Adaptive Multi-Rate (AMR) Wide-Band"),
};
+#endif
+
static av_cold int amr_wb_decode_init(AVCodecContext * avctx)
{
AMRWBContext *s = avctx->priv_data;