summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-05 14:09:33 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-06 13:56:55 +0100
commit11e1466b432f661c7605ee23203f9cdc1020a4f3 (patch)
tree5bc29afab527940ac00ca71932fc72902e566876
parentbfde6e5c02080b11d79f67390162246067b473e1 (diff)
downloadffmpeg-streaming-11e1466b432f661c7605ee23203f9cdc1020a4f3.zip
ffmpeg-streaming-11e1466b432f661c7605ee23203f9cdc1020a4f3.tar.gz
cos_tablegen: fix the lack on M_PI
We dont include mathematics.h as the headers get configured by config.h for the target not the host. Reviewed-by: Clément Bœsch <ubitux@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/cos_tablegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cos_tablegen.c b/libavcodec/cos_tablegen.c
index af9391d..313a1d2 100644
--- a/libavcodec/cos_tablegen.c
+++ b/libavcodec/cos_tablegen.c
@@ -56,7 +56,7 @@ int main(int argc, char *argv[])
printf("#include \"libavcodec/%s\"\n", do_sin ? "rdft.h" : "fft.h");
for (i = 4; i <= BITS; i++) {
int m = 1 << i;
- double freq = 2*M_PI/m;
+ double freq = 2*3.14159265358979323846/m;
printf("%s(%i) = {\n ", do_sin ? "SINTABLE" : "COSTABLE", m);
for (j = 0; j < m/2 - 1; j++) {
int idx = j > m/4 ? m/2 - j : j;
OpenPOWER on IntegriCloud