| 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();
|
|
|
|
|