summaryrefslogtreecommitdiffstats
path: root/video/csputils.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/csputils.c')
-rw-r--r--video/csputils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/csputils.c b/video/csputils.c
index cc87725d45..240c7a3259 100644
--- a/video/csputils.c
+++ b/video/csputils.c
@@ -218,7 +218,7 @@ void mp_get_yuv2rgb_coeffs(struct mp_csp_params *params, float m[3][4])
assert(params->input_bits >= 8);
assert(params->texture_bits >= params->input_bits);
- double s = (1 << params->input_bits-8) / ((1<<params->texture_bits)-1.);
+ double s = (1 << (params->input_bits-8)) / ((1<<params->texture_bits)-1.);
// The values below are written in 0-255 scale
struct yuvlevels { double ymin, ymax, cmin, cmid; }
yuvlim = { 16*s, 235*s, 16*s, 128*s },