diff options
author | Nedeljko Babic <nedeljko.babic@imgtec.com> | 2015-06-03 16:17:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-04 17:20:03 +0200 |
commit | 7131aba916d1f562bdaf6a81319f1421ce175b1e (patch) | |
tree | 90ae43fd67f4d0a44ee4f03b8cd5b621198e0f08 | |
parent | a213e57cef82aefb57f1b2233f913081df153c7b (diff) | |
download | ffmpeg-7131aba916d1f562bdaf6a81319f1421ce175b1e.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>
-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 d6cfc3cacc..6aecdf3904 100644 --- a/libavutil/softfloat.h +++ b/libavutil/softfloat.h @@ -60,7 +60,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; } |