This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avutil/intfloat_readwrite: avoid comparission with INFINITY, use isinf()
Should fix pgc warning Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer
12 years ago
parent
45741dd81f
commit
cc6f848dba
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavutil/intfloat_readwrite.c
+ 1
- 1
libavutil/intfloat_readwrite.c
View File
@@ -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)
Write
Preview
Loading…
Cancel
Save