Index: media/gpu/dxva_video_decode_accelerator_win.cc |
diff --git a/media/gpu/dxva_video_decode_accelerator_win.cc b/media/gpu/dxva_video_decode_accelerator_win.cc |
index cf841fa5342748c5adc1beba4a9b9738bc7b6d99..4f471f727aa462a35bb2dd3f088c9a5d83094a98 100644 |
--- a/media/gpu/dxva_video_decode_accelerator_win.cc |
+++ b/media/gpu/dxva_video_decode_accelerator_win.cc |
@@ -32,6 +32,7 @@ |
#include "base/memory/shared_memory.h" |
#include "base/path_service.h" |
#include "base/single_thread_task_runner.h" |
+#include "base/stl_util.h" |
#include "base/threading/thread_task_runner_handle.h" |
#include "base/trace_event/trace_event.h" |
#include "base/win/windows_version.h" |
@@ -623,6 +624,9 @@ bool DXVAVideoDecodeAccelerator::Initialize(const Config& config, |
main_thread_task_runner_ = base::ThreadTaskRunnerHandle::Get(); |
+ if (!ContainsValue(config.supported_output_formats, PIXEL_FORMAT_NV12)) |
+ share_nv12_textures_ = false; |
+ |
bool profile_supported = false; |
for (const auto& supported_profile : kSupportedProfiles) { |
if (config.profile == supported_profile) { |