[FFmpeg-devel] [PATCH] Current SVN doesn't build with gcc 4.2.x

Michael Niedermayer michaelni
Mon Jul 2 20:33:33 CEST 2007


On Mon, Jul 02, 2007 at 08:04:52PM +0200, Bernhard Rosenkraenzer wrote:
> Line 118 of ffmpeg.c
> static AVRational frame_rate = (AVRational) {25,1};
> causes gcc 4.2.x to barf:
> ffmpeg.c:118: error: initializer element is not constant.
> It does accept the line if the (better readable, but unnecessary) cast is 
> removed:
> static AVRational frame_rate = {25,1};
> I'm not sure if this is a gcc bug or some weird but intended interpretation of 
> standards.
> Either way, patch attached.

probably ok

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070702/86501e9a/attachment.pgp>

More information about the ffmpeg-devel mailing list