diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-05 17:36:46 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-05 17:40:16 +0200 |
commit | 6690ca22b36ea811cd902145d2fdb891b5e3989e (patch) | |
tree | 72f5fcbdcbf18ca029e8558134e03e478518aa84 /libavutil | |
parent | 5bf84a584e9ce681b439a5747671e2809a019c83 (diff) | |
download | ffmpeg-6690ca22b36ea811cd902145d2fdb891b5e3989e.tar.gz |
avutil/softfloat: Fix alternative implementation of av_normalize_sf()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-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 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 |