Mercurial > mplayer.hg
changeset 28729:bbf7f7100e91
Use M_PI for pi.
Suggested by Reimar.
author | cehoyos |
---|---|
date | Sat, 28 Feb 2009 15:45:24 +0000 |
parents | c9b2f40aaf18 |
children | 0226db197549 |
files | libvo/vo_vdpau.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_vdpau.c Sat Feb 28 15:42:17 2009 +0000 +++ b/libvo/vo_vdpau.c Sat Feb 28 15:45:24 2009 +0000 @@ -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 @@ 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 @@ 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;