summaryrefslogtreecommitdiff
path: root/libavcodec/libopencore-amr.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-11-17 00:35:14 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-11-17 00:35:14 +0100
commiteeab18329f030bdcc2576eb6789cb5ed700eda33 (patch)
treeb84530679671f648dbdd4dba3fc4b3d9803cf639 /libavcodec/libopencore-amr.c
parent9498ce0c23b1cb00e022ac021fb80fa5847c5f01 (diff)
lavc/libopencore-amr: Silence a warning about an unused function.
Diffstat (limited to 'libavcodec/libopencore-amr.c')
-rw-r--r--libavcodec/libopencore-amr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c
index 516f625720..614b3a2218 100644
--- a/libavcodec/libopencore-amr.c
+++ b/libavcodec/libopencore-amr.c
@@ -29,6 +29,7 @@
#include "audio_frame_queue.h"
#include "internal.h"
+#if CONFIG_LIBOPENCORE_AMRNB_DECODER || CONFIG_LIBOPENCORE_AMRWB_DECODER
static int amr_decode_fix_avctx(AVCodecContext *avctx)
{
const int is_amr_wb = 1 + (avctx->codec_id == AV_CODEC_ID_AMR_WB);
@@ -46,6 +47,7 @@ static int amr_decode_fix_avctx(AVCodecContext *avctx)
avctx->sample_fmt = AV_SAMPLE_FMT_S16;
return 0;
}
+#endif
#if CONFIG_LIBOPENCORE_AMRNB