[FFmpeg-devel] [RFC] extern "C" usage

Diego Biurrun diego
Mon May 14 11:20:21 CEST 2007

On Sun, May 13, 2007 at 04:35:26PM +0200, Alex Beregszaszi wrote:
> some headers are enclosed into extern "C" { }, while others are not.
> Such is aes.h.
> When using ffmpeg libs in a C++ application this brings a confusion, as
> you need to enclose some headers with it, while others not.
> To solve this, I propose to remove all the extern "C" occurances in
> FFmpeg and let this job be done by the developers of C++ applications.
> The other solution would be adding these to the headers which are
> missing it.

This came up some time ago and caused a big flamewar.  The consensus
among developers was that it should be removed, but gravity won.

Since the big outcry has not been forthcoming this time around and a
consensus to remove them seems to exist, I would say remove them.  I'm
all for it.


More information about the ffmpeg-devel mailing list