From 8657b205743601d21be7d7910dd712cbdf92cd94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Tue, 4 Jun 2024 22:42:23 +0200 Subject: [PATCH] ao_coreaudio_chmap: fix shadowed variable --- audio/out/ao_coreaudio_chmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/audio/out/ao_coreaudio_chmap.c b/audio/out/ao_coreaudio_chmap.c index b45cf7799c..93c5402c74 100644 --- a/audio/out/ao_coreaudio_chmap.c +++ b/audio/out/ao_coreaudio_chmap.c @@ -297,9 +297,9 @@ AudioChannelLayout *ca_find_standard_layout(void *talloc_ctx, AudioChannelLayout if (l->mNumberChannelDescriptions != r->mNumberChannelDescriptions) goto mismatch; - for (int i = 0; i < l->mNumberChannelDescriptions; ++i) { - AudioChannelDescription *ld = l->mChannelDescriptions + i; - AudioChannelDescription *rd = r->mChannelDescriptions + i; + for (int j = 0; j < l->mNumberChannelDescriptions; ++j) { + AudioChannelDescription *ld = l->mChannelDescriptions + j; + AudioChannelDescription *rd = r->mChannelDescriptions + j; if (ld->mChannelLabel == rd->mChannelLabel) continue; // XXX: we cannot handle channels with coordinates