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

Unified Diff: content/renderer/media/rtc_video_decoder.cc

Issue 1282083003: Add support for H264 and VP9 to AndroidVDA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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: content/renderer/media/rtc_video_decoder.cc
diff --git a/content/renderer/media/rtc_video_decoder.cc b/content/renderer/media/rtc_video_decoder.cc
index 0afdef07a1f693e8f1b9fc7fb82e24bd01af87f8..008f3a59350a230ad21cdb793f99d1b2078abcf3 100644
--- a/content/renderer/media/rtc_video_decoder.cc
+++ b/content/renderer/media/rtc_video_decoder.cc
@@ -661,6 +661,13 @@ bool RTCVideoDecoder::IsProfileSupported(media::VideoCodecProfile profile) {
media::VideoDecodeAccelerator::SupportedProfiles supported_profiles =
factories_->GetVideoDecodeAcceleratorSupportedProfiles();
+ // The AndroidVDA support for VP9 and H264 is experimental, so disable it for
Pawel Osciak 2015/08/08 21:00:58 Would it be possible to just have VP8 only in supp
+ // now. See http://crbug.com/507834 for updates.
+#if defined(OS_ANDROID)
+ if (profile != media::VP8PROFILE_ANY)
+ return false;
+#endif
+
for (const auto& supported_profile : supported_profiles) {
if (profile == supported_profile.profile) {
min_resolution_ = supported_profile.min_resolution;

Powered by Google App Engine
This is Rietveld 408576698