projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d44b50b
)
win32: rint() does not seem to be defined with mingw32-gcc 2.95 - do you have a bette...
author
Fabrice Bellard
<fabrice@bellard.org>
Tue, 28 Jan 2003 14:50:26 +0000
(14:50 +0000)
committer
Fabrice Bellard
<fabrice@bellard.org>
Tue, 28 Jan 2003 14:50:26 +0000
(14:50 +0000)
Originally committed as revision 1519 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/dsputil.h
patch
|
blob
|
history
diff --git
a/libavcodec/dsputil.h
b/libavcodec/dsputil.h
index
b442501
..
665bdac
100644
(file)
--- a/
libavcodec/dsputil.h
+++ b/
libavcodec/dsputil.h
@@
-331,7
+331,12
@@
static int name16(void /*MpegEncContext*/ *s, uint8_t *dst, uint8_t *src, int st
/* btw, rintf() is existing on fbsd too -- alex */
static inline long int lrintf(float x)
{
+#ifdef CONFIG_WIN32
+ /* XXX: incorrect, but make it compile */
+ return (int)(x);
+#else
return (int)(rint(x));
+#endif
}
#endif