diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-09 16:37:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-09 16:52:56 +0200 |
commit | 44198a728d15b780def29b30e7d0244e3bc1c5c6 (patch) | |
tree | 428cf5968ab81ef358c15bd837a0ebdca87eb71c /libavutil/softfloat.h | |
parent | f3b54ee989933256daa1abc6bd1fa9381b1669f6 (diff) | |
download | ffmpeg-44198a728d15b780def29b30e7d0244e3bc1c5c6.tar.gz |
avutil/softfloat: Fix dependence on signed overflow in av_normalize1_sf()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/softfloat.h')
-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 97e09ea7e7..04c79bfddc 100644 --- a/libavutil/softfloat.h +++ b/libavutil/softfloat.h @@ -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; } |