mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 16:37:31 +09:00
Fix a bug in the DXVA Codec Detection code.
This commit is contained in:
parent
cdd13135c3
commit
5ec3ae4a4c
1 changed files with 3 additions and 6 deletions
|
|
@ -389,11 +389,10 @@ D3D9DXVA2Manager::Init(layers::KnowsCompositor* aKnowsCompositor,
|
||||||
bool found = false;
|
bool found = false;
|
||||||
for (UINT i = 0; i < deviceCount; i++) {
|
for (UINT i = 0; i < deviceCount; i++) {
|
||||||
if (decoderDevices[i] == DXVA2_ModeH264_E ||
|
if (decoderDevices[i] == DXVA2_ModeH264_E ||
|
||||||
decoderDevices[i] == DXVA2_Intel_ModeH264_E) {
|
decoderDevices[i] == DXVA2_Intel_ModeH264_E ||
|
||||||
|
decoderDevices[i] == DXVA2_ModeVP9_VLD_Profile0) {
|
||||||
mDecoderGUID = decoderDevices[i];
|
mDecoderGUID = decoderDevices[i];
|
||||||
found = true;
|
found = true;
|
||||||
} else if (decoderDevices[i] == DXVA2_ModeVP9_VLD_Profile0) {
|
|
||||||
found = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CoTaskMemFree(decoderDevices);
|
CoTaskMemFree(decoderDevices);
|
||||||
|
|
@ -696,11 +695,9 @@ D3D11DXVA2Manager::Init(layers::KnowsCompositor* aKnowsCompositor,
|
||||||
GUID id;
|
GUID id;
|
||||||
hr = videoDevice->GetVideoDecoderProfile(i, &id);
|
hr = videoDevice->GetVideoDecoderProfile(i, &id);
|
||||||
if (SUCCEEDED(hr)) {
|
if (SUCCEEDED(hr)) {
|
||||||
if (id == DXVA2_ModeH264_E || id == DXVA2_Intel_ModeH264_E) {
|
if (id == DXVA2_ModeH264_E || id == DXVA2_Intel_ModeH264_E || id == DXVA2_ModeVP9_VLD_Profile0) {
|
||||||
mDecoderGUID = id;
|
mDecoderGUID = id;
|
||||||
found = true;
|
found = true;
|
||||||
} else if (id == DXVA2_ModeVP9_VLD_Profile0) {
|
|
||||||
found = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue