Browse Source

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>
tags/n2.7
Nedeljko Babic Michael Niedermayer 10 years ago
parent
commit
7131aba916
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavutil/softfloat.h

+ 1
- 1
libavutil/softfloat.h View File

@@ -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;
}


Loading…
Cancel
Save