[vlc-commits] [Git][videolan/vlc][3.0.x] d3d11_scaler: always read the staging size without the decoder padding

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sat Jun 8 19:45:44 UTC 2024



Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC


Commits:
ec7bd545 by Steve Lhomme at 2024-06-08T21:27:31+02:00
d3d11_scaler: always read the staging size without the decoder padding

- - - - -


1 changed file:

- modules/video_output/win32/d3d11_scaler.cpp


Changes:

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



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ec7bd545d74a7c4b4ef85ce90f9247d83f6146f6

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ec7bd545d74a7c4b4ef85ce90f9247d83f6146f6
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list