[FFmpeg-cvslog] avutil/softfloat: Fix thresholds in av_normalize_sf()

Michael Niedermayer git at videolan.org
Fri Jun 5 13:11:24 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jun  5 12:56:12 2015 +0200| [c7ce16e716a8e160140c16c7cfb326cdcfb31652] | committer: Michael Niedermayer

avutil/softfloat: Fix thresholds in av_normalize_sf()

Found-by: Nedeljko Babic <Nedeljko.Babic at imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
index 6aecdf3..7938c20 100644
--- a/libavutil/softfloat.h
+++ b/libavutil/softfloat.h
@@ -39,7 +39,7 @@ typedef struct SoftFloat{
 static av_const SoftFloat av_normalize_sf(SoftFloat a){
     if(a.mant){
 #if 1
-        while((a.mant + 0x20000000U)<0x40000000U){
+        while((a.mant + 0x1FFFFFFFU)<0x3FFFFFFFU){
             a.mant += a.mant;
             a.exp  -= 1;
         }



More information about the ffmpeg-cvslog mailing list