[FFmpeg-cvslog] avutil/softfloat: Correctly set the exponent for 0.0 in av_sqrt_sf()

Michael Niedermayer git at videolan.org
Thu Nov 12 00:24:06 CET 2015


ffmpeg | branch: release/2.8 | Michael Niedermayer <michael at niedermayer.cc> | Sun Nov  8 13:25:21 2015 +0100| [f38beb47daa80f66e4aeecf3f855151111bb5219] | committer: Michael Niedermayer

avutil/softfloat: Correctly set the exponent for 0.0 in av_sqrt_sf()

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 107db5abf3211dc7579bbb67c1af5c25b0e280f6)

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f38beb47daa80f66e4aeecf3f855151111bb5219
---

 libavutil/softfloat.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
index 3204fc9..5335669 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;



More information about the ffmpeg-cvslog mailing list