Browse Source

avutil/softfloat: Correctly set the exponent for 0.0 in av_sqrt_sf()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 107db5abf3)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.8.2
Michael Niedermayer 10 years ago
parent
commit
f38beb47da
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavutil/softfloat.h

+ 1
- 1
libavutil/softfloat.h View File

@@ -163,7 +163,7 @@ static av_always_inline SoftFloat av_sqrt_sf(SoftFloat val)
int tabIndex, rem;

if (val.mant == 0)
val.exp = 0;
val.exp = MIN_EXP;
else
{
tabIndex = (val.mant - 0x20000000) >> 20;


Loading…
Cancel
Save