changeset 3657:ff6720290478 libavcodec

Fix float_to_int16, unaligned case, broken by the previous commit
author lu_zero
date Thu, 31 Aug 2006 15:15:14 +0000
parents 1cc5bdadd487
children 2a113750d778
files ppc/float_altivec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ppc/float_altivec.c	Thu Aug 31 04:44:54 2006 +0000
+++ b/ppc/float_altivec.c	Thu Aug 31 15:15:14 2006 +0000
@@ -166,8 +166,8 @@
         d = vec_packs(t0,t1);
         d1 = vec_perm(d1, d0, vec_lvsl(0,dst+i));
         align = vec_lvsr(0, dst+i);
-        d0 = vec_perm(d, d1, align);
-        d1 = vec_perm(d1, d, align);
+        d0 = vec_perm(d1, d, align);
+        d1 = vec_perm(d, d1, align);
         vec_st(d0, 0, dst+i);
         vec_st(d1,15, dst+i);
     }