diff options
author | Mark Reid <mindmark@gmail.com> | 2020-09-14 19:14:46 -0700 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-09-15 19:22:18 +0200 |
commit | 8ddcbebc3f869def7819697d7f4f85b94308c570 (patch) | |
tree | c4ac1bde012f15d0f10020e260d46de2e84a4e37 /libavcodec/exr.c | |
parent | 2524e64dbe4b39644b14bfa943461fd011fafb56 (diff) |
libavcodec/exr: fix incorrect translation of denorm mantissa
Diffstat (limited to 'libavcodec/exr.c')
-rw-r--r-- | libavcodec/exr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 829d38143d..216d216785 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -201,7 +201,7 @@ static union av_intfloat32 exr_half2float(uint16_t hf) mantissa <<= 1; exp = HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP; // check for leading 1 in denorm mantissa - while ((mantissa & (1 << 10))) { + while (!(mantissa & (1 << 10))) { // for every leading 0, decrement single precision exponent by 1 // and shift half-float mantissa value to the left mantissa <<= 1; |