git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02163b7
)
Fix compilation: #undef standard library functions that are
author
Diego Biurrun
<diego@biurrun.de>
Thu, 11 Jun 2009 15:15:43 +0000
(15:15 +0000)
committer
Diego 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
patch
|
blob
|
history
diff --git
a/libswscale/swscale-example.c
b/libswscale/swscale-example.c
index
7db1ce4
..
c9916e5
100644
(file)
--- a/
libswscale/swscale-example.c
+++ b/
libswscale/swscale-example.c
@@
-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;