Merge commit '8a9de5c52401aa1e87bdb147524831c640d1ec53'
[ffmpeg.git] / libavutil / libm.h
index 9e5ec5d..6d8bd68 100644 (file)
@@ -123,7 +123,7 @@ static av_always_inline av_const int avpriv_isnan(double x)
     uint64_t v = av_double2int(x);
     if ((v & 0x7ff0000000000000) != 0x7ff0000000000000)
         return 0;
-    return v & 0x000fffffffffffff;
+    return (v & 0x000fffffffffffff) && 1;
 }
 
 #define isnan(x)                  \