[FFmpeg-devel] [PATCH] Implement the function cmdutils.c:parse_int_or_die
Wed Feb 20 17:58:34 CET 2008
On Wed, Feb 20, 2008 at 03:16:14AM -0500, D. Hugh Redelmeier wrote:
> | From: Rich Felker <dalias at aerifal.cx>
> | On Wed, Feb 20, 2008 at 02:01:36AM -0500, D. Hugh Redelmeier wrote:
> | > I'm not sure what you mean.
> | No, rather x<=DBL_MAX is the same as x<INFINITY
> One might be surprised. I think that temporary reals in x87 have a
> larger dynmaic range that double. So in an efficient
> (not-strictly-conforming) implementation these might not be the same.
If x is strictly between DBL_MAX and INFINITY, it will become infinity
after storing in a double. So checking for <=DBL_MAX rather than
<INFINITY is the right behavior.
More information about the ffmpeg-devel