summaryrefslogtreecommitdiffstats
path: root/libavutil/softfloat.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-09 16:37:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-09 16:52:56 +0200
commit44198a728d15b780def29b30e7d0244e3bc1c5c6 (patch)
tree428cf5968ab81ef358c15bd837a0ebdca87eb71c /libavutil/softfloat.h
parentf3b54ee989933256daa1abc6bd1fa9381b1669f6 (diff)
downloadffmpeg-streaming-44198a728d15b780def29b30e7d0244e3bc1c5c6.zip
ffmpeg-streaming-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
index 97e09ea..04c79bf 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;
}
OpenPOWER on IntegriCloud