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

Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-05-06 12:45:58 +02:00
parent d4fb110f5c
commit 0fc3d8e4d6
1 changed files with 2 additions and 0 deletions

View File

@ -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)