[vlc-commits] direct3d11: fix the pitch of the planes for sw chromas rendered as-is

Steve Lhomme git at videolan.org
Tue Oct 15 14:58:26 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Oct 15 14:04:29 2019 +0200| [ef9231f5bc9ff99199ca00e442c54fb7959b28c5] | committer: Steve Lhomme

direct3d11: fix the pitch of the planes for sw chromas rendered as-is

It's either planar or semi-planar (NV12/P010/P016) chromas, so the pitch is the
same on all planes.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ef9231f5bc9ff99199ca00e442c54fb7959b28c5
---

 modules/video_output/win32/direct3d11.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 803d2ee463..56844a618b 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -675,6 +675,7 @@ static void PreparePicture(vout_display_t *vd, picture_t *picture, subpicture_t
             uint8_t *buf = mappedResource.pData;
             for (int i = 0; i < picture->i_planes; i++)
             {
+                sys->stagingPlanes[i].i_pitch = mappedResource.RowPitch;
                 sys->stagingPlanes[i].p_pixels = buf;
 
                 plane_CopyPixels(&sys->stagingPlanes[i], &picture->p[i]);



More information about the vlc-commits mailing list