diff options
author | Nedeljko Babic <nedeljko.babic@imgtec.com> | 2015-06-03 16:17:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-20 04:43:39 +0200 |
commit | c8377cc49b2fe1d97836e1f8df4c3490b07612d1 (patch) | |
tree | 56e12de8d9f8fd892819f8292029962aada14427 | |
parent | ed5bfeca04fbd4a09ef8f866eaecb098fe7f4249 (diff) | |
download | ffmpeg-c8377cc49b2fe1d97836e1f8df4c3490b07612d1.tar.gz |
libavutil/softfloat: Fix av_normalize1_sf bias.
av_normalize1_sf doesn't properly address border case when mantis is
exactly -0x40000000.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 7131aba916d1f562bdaf6a81319f1421ce175b1e)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 8647e6a4fc..a487c34af3 100644 --- a/libavutil/softfloat.h +++ b/libavutil/softfloat.h @@ -59,7 +59,7 @@ static av_const SoftFloat av_normalize_sf(SoftFloat a){ static inline av_const SoftFloat av_normalize1_sf(SoftFloat a){ #if 1 - if((int32_t)(a.mant + 0x40000000U) < 0){ + if((int32_t)(a.mant + 0x40000000U) <= 0){ a.exp++; a.mant>>=1; } |