[Ffmpeg-devel] Compilation poblem and fix on 2007-03-06 trunk

Tatu Kilappa trilkk
Tue Mar 6 19:22:39 CET 2007


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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.patch
Type: text/x-diff
Size: 377 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070306/83c8081d/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libavcodec_avcodec.h.patch
Type: text/x-diff
Size: 465 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070306/83c8081d/attachment-0001.patch>



More information about the ffmpeg-devel mailing list