Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-11-08 15:25:21 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-12 01:32:32 +0300
commitf38beb47daa80f66e4aeecf3f855151111bb5219 (patch)
tree8730100fca83599340bf2f4375dd9e48431c7185
parentefa91285566a0a9140e10163f0e349637860cf0a (diff)
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.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;