1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-24 02:09:03 +03:00

avcodec/libfdk-aacdec: fix the check for downmix layout order

The code reads a mask afer this check, meaning it expects NATIVE order, not
others.

Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 7755d264bd)
This commit is contained in:
James Almer
2026-05-19 13:13:28 -03:00
parent 17638a3a3c
commit e9f8ce19a2

View File

@@ -269,7 +269,7 @@ static av_cold int fdk_aac_decode_init(AVCodecContext *avctx)
}
if (s->downmix_layout.nb_channels > 0 &&
s->downmix_layout.order != AV_CHANNEL_ORDER_NATIVE) {
s->downmix_layout.order == AV_CHANNEL_ORDER_NATIVE) {
int downmix_channels = -1;
switch (s->downmix_layout.u.mask) {