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 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;