summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-28 15:45:24 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-28 15:45:24 +0000
commit40fb81669a899c7948f2c20a1a71be60720dbfe9 (patch)
tree3238cf4124d8edd090c1580bf89098692530f8fc /libvo
parentf09943179133a04bdfec2a00cee4eb5e30293e2f (diff)
downloadmpv-40fb81669a899c7948f2c20a1a71be60720dbfe9.tar.bz2
mpv-40fb81669a899c7948f2c20a1a71be60720dbfe9.tar.xz
Use M_PI for pi.
Suggested by Reimar. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28764 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vdpau.c5
1 files 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;