[Libav-user] Compile with g++

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Oct 10 02:33:14 CEST 2013


Michael Chisholm <chisholm at ...> writes:

> So my point to all this is, the ffmpeg-2.0.1 headers 
> aren't completely C++-friendly

I don't think this is correct as such:
The headers are neither C++-friendly nor C++-unfriendly, 
they are simply C headers and exactly the same 
limitations apply than when using any other (non-trivial) 
C headers from a C++ program.

The fact that some explicit casting is necessary 
in C++ is completely orthogonal to the C++- 
"friendliness" of the FFmpeg headers afaict.

Do I understand correctly that you cannot use the 
av_ts2timestr() macro from C++ but that it is not 
used inside of FFmpeg in a way that makes using 
one of the libraries or one of the headers 
impossible?
(If you know how to fix it, consider sending a 
patch, assuming it does not slow down the macro 
for C, such a change is useful imo.)

Carl Eugen



More information about the Libav-user mailing list