diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-05 13:56:12 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-05 13:56:12 +0300 |
commit | c7ce16e716a8e160140c16c7cfb326cdcfb31652 (patch) | |
tree | a0184aa1bb662c50b5ba1a67c107f3bde2b118e1 | |
parent | c93602ae5bd4a3d3e51c86e0778b85631fe41b67 (diff) |
avutil/softfloat: Fix thresholds in av_normalize_sf()
Found-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 6aecdf3904..7938c208eb 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; } |