[FFmpeg-cvslog] r9295 - trunk/libavcodec/ppc/h264_altivec.c
gpoirier
subversion
Tue Jun 12 23:17:22 CEST 2007
Author: gpoirier
Date: Tue Jun 12 23:17:22 2007
New Revision: 9295
Log:
restore GCC2/3 support, patch by Sigbjorn Skjaeret %sskjer-1 A broadpark P no%
Modified:
trunk/libavcodec/ppc/h264_altivec.c
Modified: trunk/libavcodec/ppc/h264_altivec.c
==============================================================================
--- trunk/libavcodec/ppc/h264_altivec.c (original)
+++ trunk/libavcodec/ppc/h264_altivec.c Tue Jun 12 23:17:22 2007
@@ -776,7 +776,7 @@ static inline vector unsigned char h264_
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 */ \
More information about the ffmpeg-cvslog
mailing list