[FFmpeg-devel] cmdutils.c

Måns Rullgård mans
Sat Mar 1 00:44:26 CET 2008


"Frank Liu" <gfrankliu at gmail.com> writes:

> 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.

FWIW, INFINITY is required by POSIX to be defined by math.h.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list