changeset 29312:4851d0d2136b

Fix compilation: #undef standard library functions that are forbidden within FFmpeg, but allowed in example code.
author diego
date Thu, 11 Jun 2009 15:15:43 +0000
parents 119070d7aa1b
children 7a6f47f74e9b
files libswscale/swscale-example.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale-example.c	Thu Jun 11 10:19:04 2009 +0000
+++ b/libswscale/swscale-example.c	Thu Jun 11 15:15:43 2009 +0000
@@ -30,6 +30,12 @@
 #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;