Unified · Split
| @@ -297,9 +297,9 @@ AudioChannelLayout *ca_find_standard_layout(void *talloc_ctx, AudioChannelLayout · 296 unmodified lines | |||
| 297 | if (l->mNumberChannelDescriptions != r->mNumberChannelDescriptions) | 297 | if (l->mNumberChannelDescriptions != r->mNumberChannelDescriptions) |
| 298 | goto mismatch; | 298 | goto mismatch; |
| 299 | 299 | ||
| 300 | for (int i = 0; i < l->mNumberChannelDescriptions; ++i) { | 300 | for (int j = 0; j < l->mNumberChannelDescriptions; ++j) { |
| 301 | AudioChannelDescription *ld = l->mChannelDescriptions + i; | 301 | AudioChannelDescription *ld = l->mChannelDescriptions + j; |
| 302 | AudioChannelDescription *rd = r->mChannelDescriptions + i; | 302 | AudioChannelDescription *rd = r->mChannelDescriptions + j; |
| 303 | if (ld->mChannelLabel == rd->mChannelLabel) | 303 | if (ld->mChannelLabel == rd->mChannelLabel) |
| 304 | continue; | 304 | continue; |
| 305 | // XXX: we cannot handle channels with coordinates | 305 | // XXX: we cannot handle channels with coordinates |