]> git.sesse.net Git - ffmpeg/commitdiff
avutil/softfloat: Correctly set the exponent for 0.0 in av_sqrt_sf()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 8 Nov 2015 12:25:21 +0000 (13:25 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 8 Nov 2015 12:39:06 +0000 (13:39 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavutil/softfloat.h

index 3204fc9edd7cc8fedade9c7e6b9013d77f906b87..53356697df83c784666c2b1fdb973cad2ba35283 100644 (file)
@@ -163,7 +163,7 @@ static av_always_inline SoftFloat av_sqrt_sf(SoftFloat val)
     int tabIndex, rem;
 
     if (val.mant == 0)
-        val.exp = 0;
+        val.exp = MIN_EXP;
     else
     {
         tabIndex = (val.mant - 0x20000000) >> 20;