]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/mathematics.h
vf_overlay: prevent premature freeing of cur_buf
[ffmpeg] / libavutil / mathematics.h
index 93314bae16a08a8d7ea492481be9bd4869f7a99d..5458d2f850d5563c5c3bbca228059a74ccd332ae 100644 (file)
@@ -25,6 +25,7 @@
 #include <math.h>
 #include "attributes.h"
 #include "rational.h"
+#include "intfloat.h"
 
 #ifndef M_E
 #define M_E            2.7182818284590452354   /* e */
 #define M_SQRT2        1.41421356237309504880  /* sqrt(2) */
 #endif
 #ifndef NAN
-#define NAN            (0.0/0.0)
+#define NAN            av_int2float(0x7fc00000)
 #endif
 #ifndef INFINITY
-#define INFINITY       (1.0/0.0)
+#define INFINITY       av_int2float(0x7f800000)
 #endif
 
 /**