History

ao_coreaudio_chmap: fix shadowed variable

Kacper Michajłow committed 2 years ago

Commit 8657b201 parent 2e194201 file · +3 −3Browse files

Unified · Split

audio/out/ao_coreaudio_chmap.c+3−3
@@ -297,9 +297,9 @@ AudioChannelLayout *ca_find_standard_layout(void *talloc_ctx, AudioChannelLayout · 296 unmodified lines
297297 if (l->mNumberChannelDescriptions != r->mNumberChannelDescriptions)
298298 goto mismatch;
299299
300− for (int i = 0; i < l->mNumberChannelDescriptions; ++i) {
301− AudioChannelDescription *ld = l->mChannelDescriptions + i;
302− AudioChannelDescription *rd = r->mChannelDescriptions + i;
300+ for (int j = 0; j < l->mNumberChannelDescriptions; ++j) {
301+ AudioChannelDescription *ld = l->mChannelDescriptions + j;
302+ AudioChannelDescription *rd = r->mChannelDescriptions + j;
303303 if (ld->mChannelLabel == rd->mChannelLabel)
304304 continue;
305305 // XXX: we cannot handle channels with coordinates

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t