changeset 5133:5039df79f8cb libavcodec

restore GCC2/3 support, patch by Sigbjorn Skjaeret %sskjer-1 A broadpark P no%
author gpoirier
date Tue, 12 Jun 2007 21:17:22 +0000
parents a3b82ca01e68
children 879b809b00cb
files ppc/h264_altivec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ppc/h264_altivec.c	Tue Jun 12 19:34:06 2007 +0000
+++ b/ppc/h264_altivec.c	Tue Jun 12 21:17:22 2007 +0000
@@ -776,7 +776,7 @@
     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 */     \