Commit c7ce16e7 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/softfloat: Fix thresholds in av_normalize_sf()

Found-by: 's avatarNedeljko Babic <Nedeljko.Babic@imgtec.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c93602ae
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment