Browse Source

d3d11_scaler: always read the staging size without the decoder padding

cherry-pick-c5513cf9
Steve Lhomme 2 years ago
parent
commit
ec7bd545d7
  1. 2
      modules/video_output/win32/d3d11_scaler.cpp

2
modules/video_output/win32/d3d11_scaler.cpp

@ -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,

Loading…
Cancel
Save