diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-08 13:25:21 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-11 23:32:32 +0100 |
commit | f38beb47daa80f66e4aeecf3f855151111bb5219 (patch) | |
tree | 8730100fca83599340bf2f4375dd9e48431c7185 | |
parent | efa91285566a0a9140e10163f0e349637860cf0a (diff) | |
download | ffmpeg-f38beb47daa80f66e4aeecf3f855151111bb5219.tar.gz |
avutil/softfloat: Correctly set the exponent for 0.0 in av_sqrt_sf()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 107db5abf3211dc7579bbb67c1af5c25b0e280f6)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavutil/softfloat.h | 2 |
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; |