]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/softfloat.h
tests/avstring: free the pointer after calls to av_d2str()
[ffmpeg] / libavutil / softfloat.h
index a3b22385853d4012b2d11c477cd58ed9254e9c82..fa91d1e1cbf2760def88c3bfdaa56039640bf9f4 100644 (file)
@@ -27,7 +27,7 @@
 #include "avassert.h"
 #include "softfloat_tables.h"
 
-#define MIN_EXP -126
+#define MIN_EXP -149
 #define MAX_EXP  126
 #define ONE_BITS 29
 
@@ -175,7 +175,7 @@ static inline av_const SoftFloat av_sub_sf(SoftFloat a, SoftFloat b){
  */
 static inline av_const SoftFloat av_int2sf(int v, int frac_bits){
     int exp_offset = 0;
-    if(v == INT_MIN){
+    if(v <= INT_MIN + 1){
         exp_offset = 1;
         v>>=1;
     }