[Ffmpeg-devel] [PATCH] Redefine NAN in eval.c

Panagiotis Issaris takis.issaris
Sat Sep 23 10:45:51 CEST 2006


Hi,

On za, 2006-09-23 at 00:04 +0200, Reimar D?ffinger wrote:
> Hello,
> On Fri, Sep 22, 2006 at 11:35:36PM +0200, Panagiotis Issaris wrote:
> > The attached patch, defines NAN -if not already defined as f.e. in C99-
> > to be sqrt(-1) in the scope of eval.c. Regression tests succeed.
> 
> Isn't 0.0f/0.0f used normally? That looks less ugly to me than sqrt(-1),
0.0/0.0 is excellent for me too, anything is better then the current 0,
as I can not use isnan() on it :)

> not to mention that I'm not sure if the latter one will work right in
> all cases with -ffast-math?

With friendly regards,
Takis





More information about the ffmpeg-devel mailing list