From 6690ca22b36ea811cd902145d2fdb891b5e3989e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 5 Jun 2015 17:36:46 +0200 Subject: [PATCH] avutil/softfloat: Fix alternative implementation of av_normalize_sf() 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 0f22f057d2..bf511b5cc0 100644 --- a/libavutil/softfloat.h +++ b/libavutil/softfloat.h @@ -44,7 +44,7 @@ static av_const SoftFloat av_normalize_sf(SoftFloat a){ a.exp -= 1; } #else - int s=ONE_BITS + 1 - av_log2(a.mant ^ (a.mant<<1)); + int s=ONE_BITS - av_log2(FFABS(a.mant)); a.exp -= s; a.mant <<= s; #endif