Commit 8fe054d0 authored by jbauman's avatar jbauman Committed by Commit bot

Don't attempt to use NV12 with hardware decoding in Flash.

The ppapi interface and plugin itself don't support it.

BUG=648029

Review-Url: https://codereview.chromium.org/2351723004
Cr-Commit-Position: refs/heads/master@{#419637}
parent 9397c4c0
......@@ -131,7 +131,10 @@ bool PPB_VideoDecoder_Impl::Init(PP_Resource graphics_context,
// it is okay to immediately send IPC messages.
if (command_buffer->channel()) {
decoder_.reset(new media::GpuVideoDecodeAcceleratorHost(command_buffer));
return decoder_->Initialize(PPToMediaProfile(profile), this);
media::VideoDecodeAccelerator::Config config(PPToMediaProfile(profile));
config.supported_output_formats.assign(
{media::PIXEL_FORMAT_XRGB, media::PIXEL_FORMAT_ARGB});
return decoder_->Initialize(config, this);
}
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment