Fix compilation: #undef standard library functions that are
authorDiego Biurrun <diego@biurrun.de>
Thu, 11 Jun 2009 15:15:43 +0000 (15:15 +0000)
committerDiego Biurrun <diego@biurrun.de>
Thu, 11 Jun 2009 15:15:43 +0000 (15:15 +0000)
forbidden within FFmpeg, but allowed in example code.

Originally committed as revision 29354 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale-example.c

index 7db1ce4..c9916e5 100644 (file)
 #include "swscale.h"
 #include "swscale_internal.h"
 
+#undef fprintf
+#undef free
+#undef malloc
+#undef perror
+#undef printf
+
 static uint64_t getSSD(uint8_t *src1, uint8_t *src2, int stride1, int stride2, int w, int h){
     int x,y;
     uint64_t ssd=0;