Fix compilation of timefilter test program.
authorDiego Biurrun <diego@biurrun.de>
Sun, 10 Apr 2011 19:22:45 +0000 (21:22 +0200)
committerDiego Biurrun <diego@biurrun.de>
Mon, 11 Apr 2011 12:18:48 +0000 (14:18 +0200)
The printf function is forbidden in library code, but not in test programs,
so #undefine the printf macro that disables the system printf function.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavformat/timefilter.c

index b087647..4860a4f 100644 (file)
@@ -79,6 +79,8 @@ double ff_timefilter_update(TimeFilter *self, double system_time, double period)
 #include "libavutil/lfg.h"
 #define LFG_MAX ((1LL << 32) - 1)
 
+#undef printf
+
 int main(void)
 {
     AVLFG prng;