# HG changeset patch # User takis # Date 1171833830 0 # Node ID 219255141aa14a71aae4196444619ea0f4f96f27 # Parent f89d4caa8d4eecd9f10742f576fb6fd882d70708 Remove a non-C dependency (being M_PI) from the libavcodec example. diff -r f89d4caa8d4e -r 219255141aa1 apiexample.c --- a/apiexample.c Sun Feb 18 20:35:22 2007 +0000 +++ b/apiexample.c Sun Feb 18 21:23:50 2007 +0000 @@ -32,6 +32,8 @@ #include #include +#define PI 3.14159265358979323846 + #ifdef HAVE_AV_CONFIG_H #undef HAVE_AV_CONFIG_H #endif @@ -89,7 +91,7 @@ /* encode a single tone sound */ t = 0; - tincr = 2 * M_PI * 440.0 / c->sample_rate; + tincr = 2 * PI * 440.0 / c->sample_rate; for(i=0;i<200;i++) { for(j=0;j