changeset 9653:a572a4628a5a libavcodec

Surround AMR_WB encoding code by appropriate #ifdefs. This will help support the opencore AMR library.
author diego
date Fri, 15 May 2009 19:03:45 +0000
parents 356079de3642
children 7204dc2922be
files libamr.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libamr.c	Fri May 15 18:54:36 2009 +0000
+++ b/libamr.c	Fri May 15 19:03:45 2009 +0000
@@ -309,6 +309,8 @@
     Word16 allow_dtx;
 } AMRWBContext;
 
+#if CONFIG_LIBAMR_WB_ENCODER
+
 #include <amrwb/enc_if.h>
 
 static int getWBBitrateMode(int bitrate)
@@ -409,6 +411,8 @@
     .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;