On Tue, Mar 03, 2009 at 07:36:37PM +0100, Olivier Guilyardi wrote: > M_PI was undeclared even with <math.h>, apparently because of -std=c99. > Including "avformat.h" fixed that. Anyway, pi is not used anymore. Just FYI: M_PI in math.h would require e.g. BSD_SOURCE to be defined, the right way is to include libavutil/mathematics.h