summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-11-08 13:25:21 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-08 13:39:06 +0100
commit107db5abf3211dc7579bbb67c1af5c25b0e280f6 (patch)
tree5d86e806b10b8448b1037622e04a2c2b1d5f3615 /libavutil
parentdcf1cf5d24c85d848eabac90720d7f77d594a88c (diff)
avutil/softfloat: Correctly set the exponent for 0.0 in av_sqrt_sf()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/softfloat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
index 3204fc9edd..53356697df 100644
--- a/libavutil/softfloat.h
+++ b/libavutil/softfloat.h
@@ -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;