[Ffmpeg-devel] Re: Compilation poblem and fix on2007-03-06trunk (Tatu Kilappa)

Ramiro Polla ramiro
Sun Mar 11 05:49:30 CET 2007


Hello,

elupus escreveu:
> "Reimar D?ffinger" <Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote in 
> message news:20070309132207.GA2100 at 1und1.de...
>
>> Hm. This means the _alloca MS libc function?
>
> Well it exists there, but i'd think mingw uses their own 
> implementation of that function. And since mingw are a supported 
> environment, it would help anybody trying to use a ffmpeg lib from 
> anything other than a gcc compiled app.

Last year I tried to port the whole FFmpeg to C90, based on what Steve 
Lhomme had done.
One of the worst fixes I found was the use of _alloca for 
variable-length arrays. It's totally non-maintainable. I remember 
finding a "solution" to most if not all uses of variable-length arrays.

If FFmpeg is ever willing to remove this C99 feature in favour of proper 
solutions (not workarounds) that don't require them, I could go through 
the source code again and try to remember what I had done.
It's not even mentioned as an additional feature from ISO C99 in 
ffmpeg-doc's coding rules.


Would such patches to remove variable-length arrays be welcome?


Ramiro Polla





More information about the ffmpeg-devel mailing list