aboutsummaryrefslogtreecommitdiffstats
path: root/libpostproc/postprocess_altivec_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2025-04-22 21:04:37 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2025-04-27 05:04:34 +0200
commit142eb90f07a43a1658d0b61c4ae447f76e88f66b (patch)
tree8f1fa293247a13426ce6547cb0a670a3aa7db6c7 /libpostproc/postprocess_altivec_template.c
parent0118f392be916784f92508474e8d64243fd6fa97 (diff)
downloadffmpeg-142eb90f07a43a1658d0b61c4ae447f76e88f66b.tar.gz
postproc/postprocess_template: fix handling of first row of dering_C
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libpostproc/postprocess_altivec_template.c')
-rw-r--r--libpostproc/postprocess_altivec_template.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libpostproc/postprocess_altivec_template.c b/libpostproc/postprocess_altivec_template.c
index 1fc7c65ee4..feddab5035 100644
--- a/libpostproc/postprocess_altivec_template.c
+++ b/libpostproc/postprocess_altivec_template.c
@@ -530,7 +530,7 @@ static inline void doVertDefFilter_altivec(uint8_t src[], int stride, PPContext
STORE(5)
}
-static inline void dering_altivec(uint8_t src[], int stride, PPContext *c, int leftborder, int rightborder) {
+static inline void dering_altivec(uint8_t src[], int stride, PPContext *c, int leftborder, int rightborder, int topborder) {
const vector signed int vsint32_8 = vec_splat_s32(8);
const vector unsigned int vuint32_4 = vec_splat_u32(4);
const vector signed char neg1 = vec_splat_s8(-1);
@@ -577,6 +577,9 @@ static inline void dering_altivec(uint8_t src[], int stride, PPContext *c, int l
const vector signed int zero = vec_splat_s32(0);
vector unsigned char v_dt = vec_splat(vec_ld(0, dt), 0);
+ if (topborder)
+ return;
+
#define LOAD_LINE(i) \
const vector unsigned char perm##i = \
vec_lvsl(i * stride, srcCopy); \