зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1767467 - Fix hardware H264 decoding support detection on Windows. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D145383
This commit is contained in:
Родитель
7896e7e124
Коммит
f5adfe31a0
|
@ -722,10 +722,11 @@ bool D3D11DXVA2Manager::SupportsConfig(const VideoInfo& aInfo,
|
|||
DXVA2_Intel_ClearVideo_ModeH264_VLD_NoFGT};
|
||||
for (const GUID& guid : guids) {
|
||||
BOOL supported = false;
|
||||
hr = videoDevice->CheckVideoDecoderFormat(&DXVA2_ModeH264_VLD_NoFGT,
|
||||
DXGI_FORMAT_NV12, &supported);
|
||||
hr = videoDevice->CheckVideoDecoderFormat(&guid, DXGI_FORMAT_NV12,
|
||||
&supported);
|
||||
if (SUCCEEDED(hr) && supported) {
|
||||
desc.Guid = guid;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else if (subtype == MFVideoFormat_VP80) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче