# HG changeset patch # User diego # Date 1244733343 0 # Node ID 4851d0d2136b73d31632e104bed217cf4630ea59 # Parent 119070d7aa1b9b0d71a360076142259175fbc6e8 Fix compilation: #undef standard library functions that are forbidden within FFmpeg, but allowed in example code. diff -r 119070d7aa1b -r 4851d0d2136b libswscale/swscale-example.c --- 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;