vlc | branch: master | Steve Lhomme <[email protected]> | Fri Oct 12 15:56:07 2018 +0200| [e06d0df978fc72927bb6a9285927d893556656ca] | committer: Steve Lhomme
d3d11_shaders: clip linear values Converting BT2020 to BT709 can create colors outside of the possible range > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e06d0df978fc72927bb6a9285927d893556656ca --- modules/video_output/win32/d3d11_shaders.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/video_output/win32/d3d11_shaders.c b/modules/video_output/win32/d3d11_shaders.c index dfe382a51c..e04250e1ac 100644 --- a/modules/video_output/win32/d3d11_shaders.c +++ b/modules/video_output/win32/d3d11_shaders.c @@ -98,6 +98,7 @@ static const char* globPixelShaderDefault = "\ }\n\ \n\ inline float3 linearToDisplay(float3 rgb) {\n\ + rgb = max(min(rgb, 1), 0);\n\ %s;\n\ }\n\ \n\ _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
