[FFmpeg-cvslog] Revert "avutil/softfloat: Check for MIN_EXP in av_sqrt_sf()"

Michael Niedermayer git at videolan.org
Sun Nov 8 14:29:26 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Nov  8 13:44:27 2015 +0100| [4b6ad23609f4a70b562b8f83eb74bc9fd1e5950d] | committer: Michael Niedermayer

Revert "avutil/softfloat: Check for MIN_EXP in av_sqrt_sf()"

This case should not be possible if the input has a exponent within
the valid range

This reverts commit 0269fb11e3de17375f86d9120599af8c87cdfa0a.

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

 libavutil/softfloat.h |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
index 023ccd0..5335669 100644
--- a/libavutil/softfloat.h
+++ b/libavutil/softfloat.h
@@ -181,10 +181,6 @@ static av_always_inline SoftFloat av_sqrt_sf(SoftFloat val)
             val.mant >>= 1;
 
         val.exp = (val.exp >> 1) + 1;
-        if (val.exp < MIN_EXP) {
-            val.exp = MIN_EXP;
-            val.mant= 0;
-        }
     }
 
     return val;



More information about the ffmpeg-cvslog mailing list