[vlc-commits] direct3d11: no extra range conversion when the YUV source is already in full range

Steve Lhomme git at videolan.org
Mon Apr 16 16:16:05 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Apr 16 16:03:57 2018 +0200| [dd284d7ffd5faea2552a1ecdee6a7e6315c74341] | committer: Steve Lhomme

direct3d11: no extra range conversion when the YUV source is already in full range

Fixes #20288

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

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

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index acba5515be..d59cdd91ea 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1946,7 +1946,7 @@ static HRESULT CompilePixelShader(vout_display_t *vd, const d3d_format_t *format
         if (src_full_range)
             range_adjust = -1; /* lower the source to studio range */
     }
-    if (!IsRGBShader(format))
+    if (!IsRGBShader(format) && !src_full_range)
         range_adjust--; /* the YUV->RGB conversion already output full range */
 
     if (range_adjust != 0)



More information about the vlc-commits mailing list