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

Unified Diff: content/renderer/media_recorder/video_track_recorder.cc

Issue 2856653005: Media Recorder: enable VP9 hardware encoder in Android (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media_recorder/video_track_recorder.cc
diff --git a/content/renderer/media_recorder/video_track_recorder.cc b/content/renderer/media_recorder/video_track_recorder.cc
index 96cb15c59538018ae513dd08fd64c6216398e6b8..ba64a9cc05b6ac4211875302c20d594f8eb4a364 100644
--- a/content/renderer/media_recorder/video_track_recorder.cc
+++ b/content/renderer/media_recorder/video_track_recorder.cc
@@ -129,7 +129,9 @@ CodecEnumerator::CodecEnumerator() {
const media::VideoCodecProfile codec = supported_profile.profile;
#if defined(OS_ANDROID)
// TODO(mcasas): enable other codecs, https://crbug.com/638664.
- if (codec < media::VP8PROFILE_MIN || codec > media::VP8PROFILE_MAX)
+ static_assert(media::VP8PROFILE_MAX + 1 == media::VP9PROFILE_MIN,
+ "VP8 and VP9 VideoCodecProfiles should be contiguous");
+ if (codec < media::VP8PROFILE_MIN || codec > media::VP9PROFILE_MAX)
continue;
#endif
for (auto& codec_id_and_profile : kPreferredCodecIdAndVEAProfiles) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698