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

Steve Lhomme git at videolan.org
Mon Feb 5 19:21:09 CET 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb  5 13:54:14 2018 +0100| [bbd85487c52c97cbe48a56c16eadbcfa1f5f593a] | committer: Jean-Baptiste Kempf

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)

(cherry picked from commit 4e35c662b5218cf065b276e89ac571271b665a4c)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 fd26261ada..f0e97020e1 100644
--- a/modules/hw/d3d9/dxa9.c
+++ b/modules/hw/d3d9/dxa9.c
@@ -270,11 +270,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