[Ffmpeg-devel] [PATCH] Dead code cleanup - C++

Ramiro Polla angustia
Fri Jan 26 20:13:44 CET 2007


Ulrich von Zadow wrote:
>>> OK to apply this patch?
>>>       
>> all the versions should be bumped a little at least so user apps
>> could detect if these macros are there or not
>>
>> now about the patch itself, i have no real oppinion on this, it where
>> c++ people who wanted it, and now its one c++ developer who wants it
>> removed, i think that the people who wanted this (see svnlog i dont
>> remember at all) should at least get a chance to comment first
>>     
>
> Fair enough.
>
> I assume that this patch is a practical joke and not meant to be
> applied. Please don't take it seriously, as applying it _will_ break
> every existing c++ program that uses libav*. 
The same way removing EMULATE_INTTYPES broke any programs using lav* 
with MSVC. Just a temporary downtime, easy to workaround...

> The lines that are removed
> by the patch would need to be inserted into every c++ program using
> libav*. 
And every MSVC system needs to add inttypes.h and stdint.h.

> Lines like this are standard in lots of other c libraries that
> are used by c++ programs, as well.
>   
Other c libraries also supply stable APIs, roadmaps, and formal releases...

It has been said over and over that FFmpeg complies with the C99 
standard. It doesn't provide an API for C#, Fortran, Pascal, Java, or 
even C89.
C++ should be no exception.

Ramiro Polla




More information about the ffmpeg-devel mailing list