6 Mar
2007
6 Mar
'07
6:22 p.m.
I noticed a slight problem in the compilation of today's ffmpeg on C++ programs. Since C99 integer constant macros are not enabled by default, including avcodec.h will cause compilation to fail with a report to a missing identifier INT64_C. grepping through /usr/include it becomes obvious that INT64_C is only defined within stdint.h, which is not specifically included at any point in libavcodec sources. My proposal for the fix would be following: 1) Add a check for stdint.h in configure. 2) Before including anything else in avcodec.h, include stdint.h with __STDC_CONSTANT_MACROS enabled so as to ensure that they're defined no matter what. The patches included here accomplish that. -- -Tatu Kilappa <trilkk at iki.fi>