ao_coreaudio_chmap: fix shadowed variable

This commit is contained in:
Kacper Michajłow 2024-06-04 22:42:23 +02:00
parent 2e19420756
commit 8657b20574
1 changed files with 3 additions and 3 deletions

View File

@ -297,9 +297,9 @@ AudioChannelLayout *ca_find_standard_layout(void *talloc_ctx, AudioChannelLayout
if (l->mNumberChannelDescriptions != r->mNumberChannelDescriptions) if (l->mNumberChannelDescriptions != r->mNumberChannelDescriptions)
goto mismatch; goto mismatch;
for (int i = 0; i < l->mNumberChannelDescriptions; ++i) { for (int j = 0; j < l->mNumberChannelDescriptions; ++j) {
AudioChannelDescription *ld = l->mChannelDescriptions + i; AudioChannelDescription *ld = l->mChannelDescriptions + j;
AudioChannelDescription *rd = r->mChannelDescriptions + i; AudioChannelDescription *rd = r->mChannelDescriptions + j;
if (ld->mChannelLabel == rd->mChannelLabel) if (ld->mChannelLabel == rd->mChannelLabel)
continue; continue;
// XXX: we cannot handle channels with coordinates // XXX: we cannot handle channels with coordinates