diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-08 13:25:21 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-08 13:39:06 +0100 |
commit | 107db5abf3211dc7579bbb67c1af5c25b0e280f6 (patch) | |
tree | 5d86e806b10b8448b1037622e04a2c2b1d5f3615 | |
parent | dcf1cf5d24c85d848eabac90720d7f77d594a88c (diff) | |
download | ffmpeg-107db5abf3211dc7579bbb67c1af5c25b0e280f6.tar.gz |
avutil/softfloat: Correctly set the exponent for 0.0 in av_sqrt_sf()
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; |