]> git.sesse.net Git - ffmpeg/commit
ppc: fix Altivec build with old compilers
authorMans Rullgard <mans@mansr.com>
Mon, 8 Oct 2012 22:01:02 +0000 (23:01 +0100)
committerMans Rullgard <mans@mansr.com>
Mon, 8 Oct 2012 22:14:51 +0000 (23:14 +0100)
commitf79364b2c30aaaec9f0b1500a74da5a859c2ff37
treed62b0d4830e7f90ae54efacd6af9b9a9bfa9c57c
parent643933f51d1cf0efedece07b058d46c87deb0b2d
ppc: fix Altivec build with old compilers

The vec_splat() intrinsic requires a constant argument for the
element number, and the code relies on the compiler unrolling
the loop to provide this.  Manually unrolling the loop avoids
this reliance and works with all compilers.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/ppc/fmtconvert_altivec.c