Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: media/base/sample_format.cc

Issue 148553003: Clean up histogram'd media enum max values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/sample_format.cc
diff --git a/media/base/sample_format.cc b/media/base/sample_format.cc
index a4791cd6861ef5dbb86f0edfe0fa7ce2f0459383..cf8f20f5632f2c8d19531c35433f3968c46f5261 100644
--- a/media/base/sample_format.cc
+++ b/media/base/sample_format.cc
@@ -21,8 +21,6 @@ int SampleFormatToBytesPerChannel(SampleFormat sample_format) {
case kSampleFormatF32:
case kSampleFormatPlanarF32:
return 4;
- case kSampleFormatMax:
- break;
}
NOTREACHED() << "Invalid sample format provided: " << sample_format;
@@ -45,8 +43,6 @@ const char* SampleFormatToString(SampleFormat sample_format) {
return "Signed 16-bit planar";
case kSampleFormatPlanarF32:
return "Float 32-bit planar";
- case kSampleFormatMax:
- break;
}
NOTREACHED() << "Invalid sample format provided: " << sample_format;
return "";

Powered by Google App Engine
This is Rietveld 408576698