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

Unified Diff: media/filters/vpx_video_decoder.cc

Issue 1281433002: Enable software decoding video with libvpx on Android (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
« 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/vpx_video_decoder.cc
diff --git a/media/filters/vpx_video_decoder.cc b/media/filters/vpx_video_decoder.cc
index ef60cfe013a9b34404d1fc7d6eb7b08de3f9e6e7..1038987f34dd5ad106828924ec8013b65dc80263 100644
--- a/media/filters/vpx_video_decoder.cc
+++ b/media/filters/vpx_video_decoder.cc
@@ -292,10 +292,12 @@ bool VpxVideoDecoder::ConfigureDecoder(const VideoDecoderConfig& config) {
if (config.codec() != kCodecVP8 && config.codec() != kCodecVP9)
return false;
- // In VP8 videos, only those with alpha are handled by VpxVideoDecoder. All
- // other VP8 videos go to FFmpegVideoDecoder.
+#if !defined(DISABLE_FFMPEG_VIDEO_DECODERS)
+ // When FFmpegVideoDecoder is available it handles VP8 that doesn't have
+ // alpha, and VpxVideoDecoder will handle VP8 with alpha.
if (config.codec() == kCodecVP8 && config.format() != PIXEL_FORMAT_YV12A)
return false;
+#endif
CloseDecoder();
« 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