diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-17 20:40:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-13 00:44:56 +0200 |
commit | a4e3bb0106a5f3d6e183ae7bc578d6039822cef1 (patch) | |
tree | 41c51077fb48c021e28885968ef573b2c26c06a5 /libavutil/intfloat_readwrite.c | |
parent | cd2d8aca8468523e34f67e3647a65bdebb155efc (diff) | |
download | ffmpeg-a4e3bb0106a5f3d6e183ae7bc578d6039822cef1.tar.gz |
avutil/intfloat_readwrite: avoid comparission with INFINITY, use isinf()
Should fix pgc warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit cc6f848dba89a6dc89b840cc2e1942cc3007c2a3)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/intfloat_readwrite.c')
-rw-r--r-- | libavutil/intfloat_readwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/intfloat_readwrite.c b/libavutil/intfloat_readwrite.c index 2998229e49..9574532116 100644 --- a/libavutil/intfloat_readwrite.c +++ b/libavutil/intfloat_readwrite.c @@ -88,7 +88,7 @@ AVExtFloat av_dbl2ext(double d){ ext.mantissa[i] = m>>(56-(i<<3)); } else if (f != 0.0) { ext.exponent[0] = 0x7f; ext.exponent[1] = 0xff; - if (f != INFINITY) + if (!isinf(f)) ext.mantissa[0] = ~0; } if (d < 0) |