From 941eff85a64f1ac2178fcf5003fc652ee1e76cc2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 6 Jan 2015 16:50:33 +0100 Subject: [PATCH] csputils: use M_PI --- video/csputils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/csputils.c b/video/csputils.c index 6e8c76f6d8..9b558c9a3e 100644 --- a/video/csputils.c +++ b/video/csputils.c @@ -693,7 +693,7 @@ void mp_csp_copy_equalizer_values(struct mp_csp_params *params, { params->brightness = eq->values[MP_CSP_EQ_BRIGHTNESS] / 100.0; params->contrast = (eq->values[MP_CSP_EQ_CONTRAST] + 100) / 100.0; - params->hue = eq->values[MP_CSP_EQ_HUE] / 100.0 * 3.1415927; + params->hue = eq->values[MP_CSP_EQ_HUE] / 100.0 * M_PI; params->saturation = (eq->values[MP_CSP_EQ_SATURATION] + 100) / 100.0; float gamma = exp(log(8.0) * eq->values[MP_CSP_EQ_GAMMA] / 100.0); params->rgamma = gamma;