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

Unified Diff: media/filters/gpu_video_decoder.cc

Issue 2077023002: GpuVideoDecoder should reject playback of videos with alpha channel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: media/filters/gpu_video_decoder.cc
diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc
index 9627a4b156523c5ab3eaa72a881cf893d566d097..7a60aca09963a4bc6696c9d9dc38f1b812564a94 100644
--- a/media/filters/gpu_video_decoder.cc
+++ b/media/filters/gpu_video_decoder.cc
@@ -184,6 +184,12 @@ void GpuVideoDecoder::Initialize(const VideoDecoderConfig& config,
return;
}
+ if (config.format() == PIXEL_FORMAT_YV12A) {
sandersd (OOO until July 31) 2016/06/17 18:09:19 Please add a TODO to move this to capabilities, si
DaleCurtis 2016/06/17 18:19:56 Done.
+ DVLOG(1) << "Alpha transparency formats are not supported.";
+ bound_init_cb.Run(false);
+ return;
+ }
+
VideoDecodeAccelerator::Capabilities capabilities =
factories_->GetVideoDecodeAcceleratorCapabilities();
if (!IsProfileSupported(capabilities, config.profile(), config.coded_size(),
« 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