[FFmpeg-cvslog] avutil/softfloat: Fix alternative implementation of av_normalize_sf()
Michael Niedermayer
git at videolan.org
Fri Jun 5 17:56:39 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jun 5 17:36:46 2015 +0200| [6690ca22b36ea811cd902145d2fdb891b5e3989e] | committer: Michael Niedermayer
avutil/softfloat: Fix alternative implementation of av_normalize_sf()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6690ca22b36ea811cd902145d2fdb891b5e3989e
---
libavutil/softfloat.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
index 0f22f05..bf511b5 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
More information about the ffmpeg-cvslog
mailing list