[MPlayer-dev-eng] [PATCH] fixes for gcc4

Michael Niedermayer michaelni at gmx.at
Fri Feb 25 03:31:49 CET 2005


Hi

On Thursday 24 February 2005 19:15, Gianluigi Tiesi wrote:
> I've added some fixes to compile mplayer with gcc4, anyway they are even
> nonsenses like asm memory addressing of a binary operation of two vars.
> There are some stuff should be fixed like includes in libavcodec,
> gcc4 seams to not like struct AVOption without a type if used not as
> pointer (also this seams reasonable to me).
> The patch is splitted in two part, libavcodec and mplayer.
> I don't like much the way I've patched common.h and avcodec.h, feel free
> to find a better way.
>
> I'm also in doubt with:
> extern struct STRTAB chanlist_names[];
> that I've changed in:
> extern struct CHANLISTS   chanlist_names[];
>
> I cannot found STRTAB anyway in the source ;(
> I've no clue to compile libmpcodecs/native/RTjpegN.c with gcc4, it
> complains for a wrong operand in mmx (?) instructions.

[...]

> #ifdef HAVE_MMX
>        assert(filterSize % 4 == 0 && filterSize>0);
>+       int ptr;

mixing of statements and declarations breaks gcc 2.95

[...]
-- 
Michael

"nothing is evil in the beginning. Even Sauron was not so." -- Elrond




More information about the MPlayer-dev-eng mailing list