# HG changeset patch # User cehoyos # Date 1235835924 0 # Node ID bbf7f7100e91704afe30098f035ff8726a945233 # Parent c9b2f40aaf18cfb1be5833d9ce0dbd91f2b67411 Use M_PI for pi. Suggested by Reimar. diff -r c9b2f40aaf18 -r bbf7f7100e91 libvo/vo_vdpau.c --- 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;