changeset 8536:87450160a913 libavcodec

fix compilation with GCC-4.3+ patch by David Conrad + fix by myself
author gpoirier
date Tue, 06 Jan 2009 10:44:45 +0000
parents 8f3e20061aff
children 93a3020d9636
files ppc/h264_altivec.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ppc/h264_altivec.c	Tue Jan 06 10:35:06 2009 +0000
+++ b/ppc/h264_altivec.c	Tue Jan 06 10:44:45 2009 +0000
@@ -953,8 +953,8 @@
     temp[2] = weightd;
     temp[3] = offset;
 
-    vtemp = vec_ld(0, temp);
-    vlog2_denom = vec_splat(vtemp, 1);
+    vtemp = (vec_s16)vec_ld(0, temp);
+    vlog2_denom = (vec_u16)vec_splat(vtemp, 1);
     vweights = vec_splat(vtemp, 3);
     vweightd = vec_splat(vtemp, 5);
     voffset = vec_splat(vtemp, 7);
@@ -965,10 +965,10 @@
         vdst = vec_ld(0, dst);
         vsrc = vec_ld(0, src);
 
-        v0 = vec_mergeh(zero_u8v, vdst);
-        v1 = vec_mergel(zero_u8v, vdst);
-        v2 = vec_mergeh(zero_u8v, vsrc);
-        v3 = vec_mergel(zero_u8v, vsrc);
+        v0 = (vec_s16)vec_mergeh(zero_u8v, vdst);
+        v1 = (vec_s16)vec_mergel(zero_u8v, vdst);
+        v2 = (vec_s16)vec_mergeh(zero_u8v, vsrc);
+        v3 = (vec_s16)vec_mergel(zero_u8v, vsrc);
 
         if (w == 8) {
             if (src_aligned)