Commit eeab1832 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavc/libopencore-amr: Silence a warning about an unused function.

parent 9498ce0c
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include "audio_frame_queue.h" #include "audio_frame_queue.h"
#include "internal.h" #include "internal.h"
#if CONFIG_LIBOPENCORE_AMRNB_DECODER || CONFIG_LIBOPENCORE_AMRWB_DECODER
static int amr_decode_fix_avctx(AVCodecContext *avctx) static int amr_decode_fix_avctx(AVCodecContext *avctx)
{ {
const int is_amr_wb = 1 + (avctx->codec_id == AV_CODEC_ID_AMR_WB); 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) ...@@ -46,6 +47,7 @@ static int amr_decode_fix_avctx(AVCodecContext *avctx)
avctx->sample_fmt = AV_SAMPLE_FMT_S16; avctx->sample_fmt = AV_SAMPLE_FMT_S16;
return 0; return 0;
} }
#endif
#if CONFIG_LIBOPENCORE_AMRNB #if CONFIG_LIBOPENCORE_AMRNB
......
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