Commit 99d239b3 authored by Luca Barbato's avatar Luca Barbato

Fix float_to_int16, unaligned case, broken by the previous commit

Originally committed as revision 6141 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2064c77a
...@@ -166,8 +166,8 @@ void float_to_int16_altivec(int16_t *dst, const float *src, int len) ...@@ -166,8 +166,8 @@ void float_to_int16_altivec(int16_t *dst, const float *src, int len)
d = vec_packs(t0,t1); d = vec_packs(t0,t1);
d1 = vec_perm(d1, d0, vec_lvsl(0,dst+i)); d1 = vec_perm(d1, d0, vec_lvsl(0,dst+i));
align = vec_lvsr(0, dst+i); align = vec_lvsr(0, dst+i);
d0 = vec_perm(d, d1, align); d0 = vec_perm(d1, d, align);
d1 = vec_perm(d1, d, align); d1 = vec_perm(d, d1, align);
vec_st(d0, 0, dst+i); vec_st(d0, 0, dst+i);
vec_st(d1,15, dst+i); vec_st(d1,15, dst+i);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment