avutil/softfloat: Fix dependence on signed overflow in av_normalize1_sf()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f3b54ee989
commit
44198a728d
@ -57,7 +57,7 @@ static av_const SoftFloat av_normalize_sf(SoftFloat a){
|
|||||||
|
|
||||||
static inline av_const SoftFloat av_normalize1_sf(SoftFloat a){
|
static inline av_const SoftFloat av_normalize1_sf(SoftFloat a){
|
||||||
#if 1
|
#if 1
|
||||||
if(a.mant + 0x40000000 < 0){
|
if((int32_t)(a.mant + 0x40000000U) < 0){
|
||||||
a.exp++;
|
a.exp++;
|
||||||
a.mant>>=1;
|
a.mant>>=1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user