Chromium Code Reviews| Index: media/base/channel_layout.h |
| diff --git a/media/base/channel_layout.h b/media/base/channel_layout.h |
| index 12319ecb3ac9b43ba5bf0bc54e43cfd9340bc366..323368af29d8260367f582adce21007a4eef0113 100644 |
| --- a/media/base/channel_layout.h |
| +++ b/media/base/channel_layout.h |
| @@ -126,7 +126,7 @@ enum Channels { |
| // Returns the expected channel position in an interleaved stream. Values of -1 |
| // mean the channel at that index is not used for that layout. Values range |
| -// from 0 to CHANNELS_MAX - 1. |
| +// from 0 to ChannelLayoutToChannelCount(layout) - 1. |
|
wtc
2014/10/21 20:42:37
The original upper bound is too loose. This is the
|
| MEDIA_EXPORT int ChannelOrder(ChannelLayout layout, Channels channel); |
| // Returns the number of channels in a given ChannelLayout. |