From: Luca Barbato Date: Tue, 15 Aug 2006 20:36:05 +0000 (+0000) Subject: 10l, thanks to Emanuele Giaquinta for testing and finding the issue X-Git-Tag: v0.5~12113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb243ea220861eea427daa8ea49a036b03f207c6;p=platform%2Fupstream%2Flibav.git 10l, thanks to Emanuele Giaquinta for testing and finding the issue Originally committed as revision 6002 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/ppc/float_altivec.c b/libavcodec/ppc/float_altivec.c index 89d3ccb..7080455 100644 --- a/libavcodec/ppc/float_altivec.c +++ b/libavcodec/ppc/float_altivec.c @@ -138,8 +138,8 @@ static void vector_fmul_add_add_altivec(float *dst, const float *src0, s2 = vec_ld(0, src2+i); edges = vec_perm(t1 ,t0, mask); d = vec_madd(s0,s1,s2); - t0 = vec_perm(edges, d, align); - t1 = vec_perm(d, edges, align); + t0 = vec_perm(d, edges, align); + t1 = vec_perm(edges, d, align); vec_st(t0, 0, dst+i); vec_st(t1, 15, dst+i); t0 = t1; @@ -166,8 +166,8 @@ void float_to_int16_altivec(int16_t *dst, const float *src, int len) d = vec_packs(t0,t1); d1 = vec_perm(d1, d0, vec_lvsl(0,dst+i)); align = vec_lvsr(0, dst+i); - d0 = vec_perm(d1, d, align); - d1 = vec_perm(d, d1, align); + d0 = vec_perm(d, d1, align); + d1 = vec_perm(d1, d, align); vec_st(d0, 0, dst+i); vec_st(d1,15, dst+i); } diff --git a/libavcodec/ppc/h264_altivec.c b/libavcodec/ppc/h264_altivec.c index 87fa6af..a237062 100644 --- a/libavcodec/ppc/h264_altivec.c +++ b/libavcodec/ppc/h264_altivec.c @@ -207,11 +207,11 @@ static inline void put_pixels16_l2_altivec( uint8_t * dst, const uint8_t * src1, align = vec_lvsr(0, dst); - tmp1 = vec_perm(edges, d, align); - tmp2 = vec_perm(d, edges, align); + tmp1 = vec_perm(d, edges, align); + tmp2 = vec_perm(edges, d, align); - vec_st(tmp2, 15, dst); vec_st(tmp1, 0 , dst); + vec_st(tmp2, 15, dst); dst += dst_stride; } @@ -249,11 +249,11 @@ static inline void avg_pixels16_l2_altivec( uint8_t * dst, const uint8_t * src1, align = vec_lvsr(0, dst); - tmp1 = vec_perm(edges, d, align); - tmp2 = vec_perm(d, edges, align); + tmp1 = vec_perm(d, edges, align); + tmp2 = vec_perm(edges, d, align); - vec_st(tmp2, 15, dst); vec_st(tmp1, 0 , dst); + vec_st(tmp2, 15, dst); dst += dst_stride; }