[FFmpeg-devel] [PATCH] fix libswscale+altivec+-std=gnu99 compile

Luca Barbato lu_zero
Fri Jul 25 11:32:05 CEST 2008


Alexander Strange wrote:
> It looks like having uncasted AVV() with 3.3 is problematic. And, even 
> worse, it will compile altivec constants with the {} syntax, but if you 
> leave out the cast it'll drop all but the first four members and write 
> zeroes instead.

Notabug.

> It also breaks if you do:
> vector signed short a = (vector unsigned short)...
> which makes writing short macros harder.

Notabug, sadly.

> I can compile on ppc+gnu99 with apple gcc 3.3 and 4.2 with this patch. 
> Does anyone else have problems with it?

Feels overly complicated and ugly. And as I said gcc-3.3 deserves to die 
as well gcc-apple.

lu

-- 

Luca Barbato
Gentoo Council Member
Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero





More information about the ffmpeg-devel mailing list