From c7ce16e716a8e160140c16c7cfb326cdcfb31652 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 5 Jun 2015 12:56:12 +0200 Subject: [PATCH] avutil/softfloat: Fix thresholds in av_normalize_sf() Found-by: Nedeljko Babic Signed-off-by: Michael Niedermayer --- libavutil/softfloat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h index 6aecdf3904..7938c208eb 100644 --- a/libavutil/softfloat.h +++ b/libavutil/softfloat.h @@ -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; }