Index: media/base/channel_layout.h |
diff --git a/media/base/channel_layout.h b/media/base/channel_layout.h |
index 9354eee850d2718306166119bade0e6252401a70..7fd5dc28bc2aa72e58eee543fa03365f1311340a 100644 |
--- a/media/base/channel_layout.h |
+++ b/media/base/channel_layout.h |
@@ -99,8 +99,9 @@ enum ChannelLayout { |
// Channels are not explicitly mapped to speakers. |
CHANNEL_LAYOUT_DISCRETE = 29, |
- // Total number of layouts. |
- CHANNEL_LAYOUT_MAX // Must always be last! |
+ // Max value |
scherkus (not reviewing)
2014/02/25 03:44:49
combine subsequent comment w/ this one? (or replac
|
+ CHANNEL_LAYOUT_MAX = CHANNEL_LAYOUT_DISCRETE // Must always equal the largest |
+ // entry ever logged. |
}; |
enum Channels { |
@@ -115,7 +116,7 @@ enum Channels { |
BACK_CENTER, |
SIDE_LEFT, |
SIDE_RIGHT, |
- CHANNELS_MAX |
+ CHANNELS_MAX = SIDE_RIGHT, // Must always equal the largest value ever logged. |
}; |
// Returns the expected channel position in an interleaved stream. Values of -1 |