Commit d82c28ac authored by diego's avatar diego

Surround AMR_WB encoding code by appropriate #ifdefs.

This will help support the opencore AMR library.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18847 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7a16d9ac
...@@ -309,6 +309,8 @@ typedef struct AMRWBContext { ...@@ -309,6 +309,8 @@ typedef struct AMRWBContext {
Word16 allow_dtx; Word16 allow_dtx;
} AMRWBContext; } AMRWBContext;
#if CONFIG_LIBAMR_WB_ENCODER
#include <amrwb/enc_if.h> #include <amrwb/enc_if.h>
static int getWBBitrateMode(int bitrate) static int getWBBitrateMode(int bitrate)
...@@ -409,6 +411,8 @@ AVCodec libamr_wb_encoder = ...@@ -409,6 +411,8 @@ AVCodec libamr_wb_encoder =
.long_name = NULL_IF_CONFIG_SMALL("libamr-wb Adaptive Multi-Rate (AMR) Wide-Band"), .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) static av_cold int amr_wb_decode_init(AVCodecContext * avctx)
{ {
AMRWBContext *s = avctx->priv_data; AMRWBContext *s = avctx->priv_data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment