Skip to content
Snippets Groups Projects
Commit ec7bd545 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

d3d11_scaler: always read the staging size without the decoder padding

parent ed469a13
No related branches found
No related tags found
No related merge requests found
......@@ -653,14 +653,12 @@ int D3D11_UpscalerScale(vlc_object_t *vd, d3d11_scaler *scaleProc, picture_sys_t
auto packedStaging = scaleProc->amfInput->GetPlane(amf::AMF_PLANE_PACKED);
ID3D11Texture2D *amfStaging = reinterpret_cast<ID3D11Texture2D *>(packedStaging->GetNative());
#ifndef NDEBUG
D3D11_TEXTURE2D_DESC stagingDesc, inputDesc;
amfStaging->GetDesc(&stagingDesc);
p_sys->texture[KNOWN_DXGI_INDEX]->GetDesc(&inputDesc);
assert(stagingDesc.Width <= inputDesc.Width);
assert(stagingDesc.Height <= inputDesc.Height);
assert(stagingDesc.Format == inputDesc.Format);
#endif
D3D11_BOX box = {};
box.bottom = stagingDesc.Height,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment