[FFmpeg-devel] [PATCH] seek print NOPTS

Reimar Döffinger Reimar.Doeffinger
Tue Oct 20 17:51:12 CEST 2009


On Tue, Oct 20, 2009 at 05:38:23PM +0200, Michael Niedermayer wrote:
> > I have no idea, however IMO avoiding those 3 lines of code
> > is not worth it, since the NaN
> 
> > 1) is less clear than NOPTS
> 
> IMHO "not specified", "nan" or similar are clearer than NOPTS
> which isnt a word nor common abbrevation 

Well, nan does not make that much sense.
I agree that there might be a better name, maybe just "NONE" would
be better or "Not set".
If someone tells me what to change it to I'll do it (or whoever
wants can do it by themselves).

> > 3) it would need a math.h include and a conditional #define for NAN like in libavutil/matheatics.h
> 
> one could use 0.0/0.0

In principle, though I remember some compiler (possibly incorrectly) refused to
compile that or it crashed at runtime or something IIRC.



More information about the ffmpeg-devel mailing list