[FFmpeg-cvslog] avcodec/aac/aacdec: Avoid compiling latm decoder if disabled

Andreas Rheinhardt git at videolan.org
Tue May 7 01:08:27 EEST 2024


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon May  6 12:45:58 2024 +0200| [0fc3d8e4d6d38da5f456ca958647b4ac34926c67] | committer: Andreas Rheinhardt

avcodec/aac/aacdec: Avoid compiling latm decoder if disabled

Reviewed-by: Lynne <dev at lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0fc3d8e4d6d38da5f456ca958647b4ac34926c67
---

 libavcodec/aac/aacdec.c | 2 ++
 1 file changed, 2 insertions(+)

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)



More information about the ffmpeg-cvslog mailing list