aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-06 12:45:58 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-07 00:00:04 +0200
commit0fc3d8e4d6d38da5f456ca958647b4ac34926c67 (patch)
tree1077862b88fa1190bde90dd2c03ecc53135d651b /libavcodec
parentd4fb110f5c68dd3ecfc3d6a46d382cbbbf4952ed (diff)
downloadffmpeg-0fc3d8e4d6d38da5f456ca958647b4ac34926c67.tar.gz
avcodec/aac/aacdec: Avoid compiling latm decoder if disabled
Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/aac/aacdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/aac/aacdec.c b/libavcodec/aac/aacdec.c
index 82834b77bf..29a8303727 100644
--- a/libavcodec/aac/aacdec.c
+++ b/libavcodec/aac/aacdec.c
@@ -2510,7 +2510,9 @@ static int aac_decode_frame(AVCodecContext *avctx, AVFrame *frame,
return buf_size > buf_offset ? buf_consumed : buf_size;
}
+#if CONFIG_AAC_LATM_DECODER
#include "aacdec_latm.h"
+#endif
#define AACDEC_FLAGS AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM
#define OFF(field) offsetof(AACDecContext, field)