Unified · Split
| @@ -297,9 +297,9 @@ AudioChannelLayout *ca_find_standard_layout(void *talloc_ctx, AudioChannelLayout · 296 unmodified lines | ||
| 297 | 297 | if (l->mNumberChannelDescriptions != r->mNumberChannelDescriptions) |
| 298 | 298 | goto mismatch; |
| 299 | 299 | |
| 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; | |
| 303 | 303 | if (ld->mChannelLabel == rd->mChannelLabel) |
| 304 | 304 | continue; |
| 305 | 305 | // XXX: we cannot handle channels with coordinates |