Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2013-05-24 21:44:29 +0400
committerKostya Shishkov <kostya.shishkov@gmail.com>2013-05-26 18:10:47 +0400
commit0418cbf081957372f858c4664ba200754982b024 (patch)
tree51aa84e7a6da2521ea24fcdf555c1d6639102567 /libavcodec/ppc
parent322e4194dd24ff06aeef72210beee4f19efa2e08 (diff)
fix scalarproduct_and_madd_int16_altivec() for orders > 16
the second and third sources were incremented only by half of the needed size
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r--libavcodec/ppc/int_altivec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ppc/int_altivec.c b/libavcodec/ppc/int_altivec.c
index 67d119c473..8357ca768b 100644
--- a/libavcodec/ppc/int_altivec.c
+++ b/libavcodec/ppc/int_altivec.c
@@ -129,8 +129,8 @@ static int32_t scalarproduct_and_madd_int16_altivec(int16_t *v1, const int16_t *
pv1[0] = vec_mladd(t0, muls, i0);
pv1[1] = vec_mladd(t1, muls, i1);
pv1 += 2;
- v2 += 8;
- v3 += 8;
+ v2 += 16;
+ v3 += 16;
} while(--order);
res = vec_splat(vec_sums(res, zero_s32v), 3);
vec_ste(res, 0, &ires);