From 40fb81669a899c7948f2c20a1a71be60720dbfe9 Mon Sep 17 00:00:00 2001 From: cehoyos Date: Sat, 28 Feb 2009 15:45:24 +0000 Subject: [PATCH] Use M_PI for pi. Suggested by Reimar. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28764 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_vdpau.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index 851c28e0f4..7417c7069c 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -49,6 +49,7 @@ #include "gui/interface.h" #include "libavutil/common.h" +#include "libavutil/mathematics.h" #include "libass/ass.h" #include "libass/ass_mp.h" @@ -1041,7 +1042,7 @@ static int get_equalizer(char *name, int *value) { else if (!strcasecmp(name, "saturation")) *value = (procamp.saturation-1.0) * 100; else if (!strcasecmp(name, "hue")) - *value = procamp.hue * 100 / 3.141592; + *value = procamp.hue * 100 / M_PI; else return VO_NOTIMPL; return VO_TRUE; @@ -1060,7 +1061,7 @@ static int set_equalizer(char *name, int value) { else if (!strcasecmp(name, "saturation")) procamp.saturation = value / 100.0 + 1.0; else if (!strcasecmp(name, "hue")) - procamp.hue = value / 100.0 * 3.141592; + procamp.hue = value / 100.0 * M_PI; else return VO_NOTIMPL;