[vlc-commits] hw:d3d9: no need to swap the planes when running the external converter

Steve Lhomme git at videolan.org
Mon Feb 5 13:54:48 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb  5 13:54:14 2018 +0100| [4e35c662b5218cf065b276e89ac571271b665a4c] | committer: Steve Lhomme

hw:d3d9: no need to swap the planes when running the external converter

It's already taking care of the proper plane swapping.

Fixes #19482 (without breaking #19543)

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

 modules/hw/d3d9/dxa9.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/hw/d3d9/dxa9.c b/modules/hw/d3d9/dxa9.c
index 3aac41dda6..92dd872b32 100644
--- a/modules/hw/d3d9/dxa9.c
+++ b/modules/hw/d3d9/dxa9.c
@@ -257,11 +257,7 @@ static void YV12_D3D9(filter_t *p_filter, picture_t *src, picture_t *dst)
 
     picture_Hold( src );
 
-    if (src->format.i_chroma == VLC_CODEC_I420)
-        plane_SwapUV( src->p );
     sys->filter->pf_video_filter(sys->filter, src);
-    if (src->format.i_chroma == VLC_CODEC_I420)
-        plane_SwapUV( src->p );
 
     IDirect3DSurface9_UnlockRect(sys->staging->p_sys->surface);
 



More information about the vlc-commits mailing list