summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
Diffstat (limited to 'video/out')
-rw-r--r--video/out/opengl/video.c2
-rw-r--r--video/out/vo_direct3d.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index 7ac56cb414..8b7ec35478 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -1491,7 +1491,7 @@ static void pass_convert_yuv(struct gl_video *p)
// Conversion to RGB. For RGB itself, this still applies e.g. brightness
// and contrast controls, or expansion of e.g. LSB-packed 10 bit data.
struct mp_cmat m = {{{0}}};
- mp_get_yuv2rgb_coeffs(&cparams, &m);
+ mp_get_csp_matrix(&cparams, &m);
gl_sc_uniform_mat3(sc, "colormatrix", true, &m.m[0][0]);
gl_sc_uniform_vec3(sc, "colormatrix_c", m.c);
diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c
index 76c92ca339..f9a5cb092f 100644
--- a/video/out/vo_direct3d.c
+++ b/video/out/vo_direct3d.c
@@ -1205,7 +1205,7 @@ static void update_colorspace(d3d_priv *priv)
csp.texture_bits = (csp.input_bits + 7) & ~7;
struct mp_cmat coeff;
- mp_get_yuv2rgb_coeffs(&csp, &coeff);
+ mp_get_csp_matrix(&csp, &coeff);
for (int row = 0; row < 3; row++) {
for (int col = 0; col < 3; col++)
priv->d3d_colormatrix.m[row][col] = coeff.m[row][col];