[Ffmpeg-cvslog] r5504 - trunk/libavcodec/ppc/dsputil_h264_template_altivec.c

lu_zero subversion
Tue Jun 20 12:35:30 CEST 2006


Author: lu_zero
Date: Tue Jun 20 12:35:30 2006
New Revision: 5504

Modified:
   trunk/libavcodec/ppc/dsputil_h264_template_altivec.c

Log:
Make gcc-3 happy again, thanks to Olivier Castan <castan.o at free.fr> for pointing the issue

Modified: trunk/libavcodec/ppc/dsputil_h264_template_altivec.c
==============================================================================
--- trunk/libavcodec/ppc/dsputil_h264_template_altivec.c	(original)
+++ trunk/libavcodec/ppc/dsputil_h264_template_altivec.c	Tue Jun 20 12:35:30 2006
@@ -252,20 +252,32 @@
     } break;
     }
 
-    srcP0A = vec_mergeh((vector unsigned char)vzero, srcP0);
-    srcP0B = vec_mergel((vector unsigned char)vzero, srcP0);
-    srcP1A = vec_mergeh((vector unsigned char)vzero, srcP1);
-    srcP1B = vec_mergel((vector unsigned char)vzero, srcP1);
-
-    srcP2A = vec_mergeh((vector unsigned char)vzero, srcP2);
-    srcP2B = vec_mergel((vector unsigned char)vzero, srcP2);
-    srcP3A = vec_mergeh((vector unsigned char)vzero, srcP3);
-    srcP3B = vec_mergel((vector unsigned char)vzero, srcP3);
-
-    srcM1A = vec_mergeh((vector unsigned char)vzero, srcM1);
-    srcM1B = vec_mergel((vector unsigned char)vzero, srcM1);
-    srcM2A = vec_mergeh((vector unsigned char)vzero, srcM2);
-    srcM2B = vec_mergel((vector unsigned char)vzero, srcM2);
+    srcP0A = (vector signed short)
+                vec_mergeh((vector unsigned char)vzero, srcP0);
+    srcP0B = (vector signed short)
+                vec_mergel((vector unsigned char)vzero, srcP0);
+    srcP1A = (vector signed short)
+                vec_mergeh((vector unsigned char)vzero, srcP1);
+    srcP1B = (vector signed short)
+                vec_mergel((vector unsigned char)vzero, srcP1);
+
+    srcP2A = (vector signed short)
+                vec_mergeh((vector unsigned char)vzero, srcP2);
+    srcP2B = (vector signed short)
+                vec_mergel((vector unsigned char)vzero, srcP2);
+    srcP3A = (vector signed short)
+                vec_mergeh((vector unsigned char)vzero, srcP3);
+    srcP3B = (vector signed short)
+                vec_mergel((vector unsigned char)vzero, srcP3);
+
+    srcM1A = (vector signed short)
+                vec_mergeh((vector unsigned char)vzero, srcM1);
+    srcM1B = (vector signed short)
+                vec_mergel((vector unsigned char)vzero, srcM1);
+    srcM2A = (vector signed short)
+                vec_mergeh((vector unsigned char)vzero, srcM2);
+    srcM2B = (vector signed short)
+                vec_mergel((vector unsigned char)vzero, srcM2);
 
     sum1A = vec_adds(srcP0A, srcP1A);
     sum1B = vec_adds(srcP0B, srcP1B);




More information about the ffmpeg-cvslog mailing list