From 525751c053c56b1b5fef33ce1c38497abea2d295 Mon Sep 17 00:00:00 2001 From: Sigbjorn Skjaeret Date: Tue, 12 Jun 2007 21:17:22 +0000 Subject: [PATCH] restore GCC2/3 support, patch by Sigbjorn Skjaeret %sskjer-1 A broadpark P no% Originally committed as revision 9295 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ppc/h264_altivec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ppc/h264_altivec.c b/libavcodec/ppc/h264_altivec.c index c8968b4..4d88b32 100644 --- a/libavcodec/ppc/h264_altivec.c +++ b/libavcodec/ppc/h264_altivec.c @@ -776,7 +776,7 @@ static inline vector unsigned char h264_deblock_mask ( register vector unsigned register vector unsigned char delta; \ register vector unsigned char deltaneg; \ \ - temp = vec_cmpeq(p0, p0); \ + temp = (vector unsigned char)vec_cmpeq(p0, p0); \ q1minus = vec_xor(temp, q1); /* 255 - q1 */ \ stage1 = vec_avg(p1, q1minus); /* (p1 - q1 + 256)>>1 */ \ stage2 = vec_sr(stage1, vec_splat_u8(1)); /* (p1 - q1 + 256)>>2 = 64 + (p1 - q1) >> 2 */ \ -- 2.7.4