vlc/vlc-3.0 | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Mon Apr 16 16:03:57 2018 +0200| [e350ad618597bbbb404d1dc8b03dc2766498416d] | committer: Hugo Beauzée-Luyssen
direct3d11: no extra range conversion when the YUV source is already in full range Fixes #20288 (cherry picked from commit dd284d7ffd5faea2552a1ecdee6a7e6315c74341) Signed-off-by: Hugo Beauzée-Luyssen <h...@beauzee.fr> > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=e350ad618597bbbb404d1dc8b03dc2766498416d --- 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 07bbeec554..0cf6e85cab 100644 --- a/modules/video_output/win32/direct3d11.c +++ b/modules/video_output/win32/direct3d11.c @@ -1943,7 +1943,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) _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits