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

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: Created 6 years, 11 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..011512ca4feceb3728cec2f2ba18ba7a576ea755 100644
--- a/media/base/sample_format.cc
+++ b/media/base/sample_format.cc
@@ -21,7 +21,7 @@ int SampleFormatToBytesPerChannel(SampleFormat sample_format) {
case kSampleFormatF32:
case kSampleFormatPlanarF32:
return 4;
- case kSampleFormatMax:
+ case kSampleFormatHistogramMax:
break;
}
@@ -45,7 +45,7 @@ const char* SampleFormatToString(SampleFormat sample_format) {
return "Signed 16-bit planar";
case kSampleFormatPlanarF32:
return "Float 32-bit planar";
- case kSampleFormatMax:
+ case kSampleFormatHistogramMax:
break;
}
NOTREACHED() << "Invalid sample format provided: " << sample_format;

Powered by Google App Engine
This is Rietveld 408576698