From 48475aba7271c7f90b671b97185c1dd47ca7b9f0 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 18 Nov 2025 21:06:44 +0100 Subject: [PATCH] [codec,ffmpeg] 8.0 dropped AV_PROFILE_AAC_MAIN replace with AV_PROFILE_AAC_LOW which is supported by all aac encoders/decoders --- libfreerdp/codec/dsp_ffmpeg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libfreerdp/codec/dsp_ffmpeg.c b/libfreerdp/codec/dsp_ffmpeg.c index 8fba7f596..c01a3f9ca 100644 --- a/libfreerdp/codec/dsp_ffmpeg.c +++ b/libfreerdp/codec/dsp_ffmpeg.c @@ -286,8 +286,10 @@ static BOOL ffmpeg_open_context(FREERDP_DSP_CONTEXT* WINPR_RESTRICT context) case AV_CODEC_ID_AAC: #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(60, 31, 102) context->context->profile = FF_PROFILE_AAC_MAIN; -#else +#elif LIBAVCODEC_VERSION_INT < AV_VERSION_INT(62, 11, 100) context->context->profile = AV_PROFILE_AAC_MAIN; +#else + context->context->profile = AV_PROFILE_AAC_LOW; #endif break;