vlc | branch: master | Steve Lhomme <[email protected]> | 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]); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
