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

Måns Rullgård mans
Fri Mar 9 03:11:13 CET 2007


"larry.sdk" <larry.sdk at gmail.com> writes:

> As the MS VC do not support declaration array with varible size, all
> of the source code must be modified with _alloc(). And below is and
> example in the dsputils.c:
>
> DECLARE_ALIGNED_8 (uint64_t, aligned_bak[stride]);
>
> replaced it by:
>
>  uint64_t *aligned_bak = (uint64_t *)_alloca(sizeof(uint64_t)*stride);

MSVC lacks support for quite a few other C features used by FFmpeg.
The code must be compiled with a (mostly) C99 compliant compiler, such
as gcc.  Most of the assembler optimizations are also available only
when gcc is used.

The compiled libraries can be used with any compiler.  The public
header files do not use any special language constructs.  All that is
required is a sane stdint.h header file.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list