diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index b442501a3b94d5208b00861e59c8a8fe9582b8b7..665bdac69ed9b78f667dd9fced5c0e01c42a00ab 100644 --- 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