[vlc-devel] [PATCH 06/14] direct3d11: fix typos in ST2084 pixel shader

Steve Lhomme robux4 at videolabs.io
Mon Mar 20 17:28:25 CET 2017


---
 modules/video_output/win32/direct3d11.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 5944dba0aa..5787f1c453 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1687,11 +1687,11 @@ static HRESULT CompilePixelShader(vout_display_t *vd, const d3d_format_t *format
                 if (src_transfer == TRANSFER_FUNC_LINEAR)
                 {
                     /* Linear to ST2084 */
-                    psz_src_transform =
+                    psz_display_transform =
                            ST2084_PQ_CONSTANTS
-                           "rgb = pow(rgb, m1);\
+                           "rgb = pow(rgb, ST2084_m1);\
                             rgb = (ST2084_c1 + ST2084_c2 * rgb) / (1 + ST2084_c3 * rgb);\
-                            rgb = pow(rgb, ST2084_m3);\
+                            rgb = pow(rgb, ST2084_m2);\
                             return rgb";
                 }
                 else
-- 
2.11.1



More information about the vlc-devel mailing list