[FFmpeg-devel] cmdutils.c

Rich Felker dalias
Sun Mar 2 00:36:40 CET 2008


On Fri, Feb 29, 2008 at 11:30:01AM -0800, Frank Liu wrote:
> I am compiling today's ffmpeg svn on Solaris 10 Sparc and got the below errors:
> 
> cmdutils.c: In function 'parse_options':
> cmdutils.c:131: error: 'INFINITY' undeclared (first use in this function)
> cmdutils.c:131: error: (Each undeclared identifier is reported only once
> cmdutils.c:131: error: for each function it appears in.)
> gmake: *** [cmdutils.o] Error 1
> 
> 
> I searched the source tree and cut/paste the below code from ffmpeg.c:
> #if !defined(INFINITY) && defined(HUGE_VAL)
> #define INFINITY HUGE_VAL
> #endif
> and now cmdutils.c compiles fine.

Just write a constant 1.0/0.0 for infinity... This is just as good as
'INFINITY' unless you care about floating point exception state, which
ffmpeg and its libs do not use.

Rich




More information about the ffmpeg-devel mailing list