[FFmpeg-cvslog] Fix compilation of timefilter test program.

Diego Biurrun git at videolan.org
Tue Apr 12 03:50:41 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Sun Apr 10 21:22:45 2011 +0200| [70ad9842a5d0d685080d4e61243554dfad6dc00e] | committer: Diego Biurrun

Fix compilation of timefilter test program.

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 at biurrun.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=70ad9842a5d0d685080d4e61243554dfad6dc00e
---

 libavformat/timefilter.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavformat/timefilter.c b/libavformat/timefilter.c
index b087647..4860a4f 100644
--- a/libavformat/timefilter.c
+++ b/libavformat/timefilter.c
@@ -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;



More information about the ffmpeg-cvslog mailing list