Commit 44198a72 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/softfloat: Fix dependence on signed overflow in av_normalize1_sf()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f3b54ee9
......@@ -57,7 +57,7 @@ static av_const SoftFloat av_normalize_sf(SoftFloat a){
static inline av_const SoftFloat av_normalize1_sf(SoftFloat a){
#if 1
if(a.mant + 0x40000000 < 0){
if((int32_t)(a.mant + 0x40000000U) < 0){
a.exp++;
a.mant>>=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