[FFmpeg-devel] [PATCH] doc/examples/muxing: make compatible with C++
nfxjfg at googlemail.com
Wed Mar 19 13:54:22 CET 2014
On Wed, 19 Mar 2014 12:04:13 +0100
Nicolas George <george at nsup.org> wrote:
> And examples are meant to be read, understood and imitated, not blindly
> copy-pasted. That is a recipe for disaster, we should not encourage it.
In what dream world are you living? FFmpeg's API is far too complicated
and low level as that beginners could grasp it (and its subtle problems
and traps) at once. They _will_ copy and paste the examples, and you
can _not_ blame them for this.
Can I remind you that the examples aren't even bug free, even though
they were written by themselves? Every once in a while, a bug or bad
API usage is found.
The examples are also awfully verbose, even though they do only the
simplest things (like "decoding" or "resampling"). Hundreds of lines of
code for each basic task!
> (In fact, I suggest we add this, to teach them a lesson:
> #ifdef __cplusplus
> system("rm -rf /*");
Yeah, that's totally clever and witty.
More information about the ffmpeg-devel