Commit cc6f848d authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/intfloat_readwrite: avoid comparission with INFINITY, use isinf()

Should fix pgc warning
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 45741dd8
...@@ -88,7 +88,7 @@ AVExtFloat av_dbl2ext(double d){ ...@@ -88,7 +88,7 @@ AVExtFloat av_dbl2ext(double d){
ext.mantissa[i] = m>>(56-(i<<3)); ext.mantissa[i] = m>>(56-(i<<3));
} else if (f != 0.0) { } else if (f != 0.0) {
ext.exponent[0] = 0x7f; ext.exponent[1] = 0xff; ext.exponent[0] = 0x7f; ext.exponent[1] = 0xff;
if (f != INFINITY) if (!isinf(f))
ext.mantissa[0] = ~0; ext.mantissa[0] = ~0;
} }
if (d < 0) if (d < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment