diff options
author | wm4 <wm4@nowhere> | 2013-05-19 15:47:34 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-21 00:04:27 +0200 |
commit | 266230ad64eddb663cfcf12ad248f9ae178d22ba (patch) | |
tree | a04933bf838f7c0e24f408fa581e91cb01c18fa9 /video/csputils.c | |
parent | 3b54dce9e518488588b213ce6cf90218e79fb0f6 (diff) | |
download | mpv-266230ad64eddb663cfcf12ad248f9ae178d22ba.tar.bz2 mpv-266230ad64eddb663cfcf12ad248f9ae178d22ba.tar.xz |
Silence some compiler warnings
None of these were actual issues.
Diffstat (limited to 'video/csputils.c')
-rw-r--r-- | video/csputils.c | 2 |
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 }, |