summaryrefslogtreecommitdiffstats
path: root/chromium/media/base/sample_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/media/base/sample_format.h')
-rw-r--r--chromium/media/base/sample_format.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/chromium/media/base/sample_format.h b/chromium/media/base/sample_format.h
index 3d2799fa128..7c3df702157 100644
--- a/chromium/media/base/sample_format.h
+++ b/chromium/media/base/sample_format.h
@@ -12,7 +12,8 @@ namespace media {
enum SampleFormat {
// These values are histogrammed over time; do not change their ordinal
// values. When deleting a sample format replace it with a dummy value; when
- // adding a sample format, do so at the bottom before kSampleFormatMax.
+ // adding a sample format, do so at the bottom before kSampleFormatMax, and
+ // update the value of kSampleFormatMax.
kUnknownSampleFormat = 0,
kSampleFormatU8, // Unsigned 8-bit w/ bias of 128.
kSampleFormatS16, // Signed 16-bit.
@@ -21,8 +22,8 @@ enum SampleFormat {
kSampleFormatPlanarS16, // Signed 16-bit planar.
kSampleFormatPlanarF32, // Float 32-bit planar.
- // Must always be last!
- kSampleFormatMax
+ // Must always be equal to largest value ever logged.
+ kSampleFormatMax = kSampleFormatPlanarF32,
};
// Returns the number of bytes used per channel for the specified