summaryrefslogtreecommitdiff
path: root/src/enc/predictor_enc.c
diff options
context:
space:
mode:
authorPascal Massimino <pascal.massimino@gmail.com>2021-11-05 16:20:31 +0100
committerPascal Massimino <skal@google.com>2021-11-05 16:22:31 +0100
commit8ea81561d2fdd382da60f57958741a7c23a18eb6 (patch)
treee8735c19adf5a49a684095bd63dbf2bcc35ddffe /src/enc/predictor_enc.c
parent6b1d18c362b903564476f996af5e1b194355ed09 (diff)
downloadlibwebp-master.tar.gz
change VP8LPredictorFunc signature to avoid reading 'left'master
... when it's not available. Even if the value was discarded and never used, some msan config were complaining about reading it and passing it around. Change-Id: Iab8d24676c5bb58e607a829121e36c2862da397c
Diffstat (limited to 'src/enc/predictor_enc.c')
-rw-r--r--src/enc/predictor_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/enc/predictor_enc.c b/src/enc/predictor_enc.c
index 2e6762ea..2b5c7672 100644
--- a/src/enc/predictor_enc.c
+++ b/src/enc/predictor_enc.c
@@ -249,7 +249,7 @@ static WEBP_INLINE void GetResidual(
} else if (x == 0) {
predict = upper_row[x]; // Top.
} else {
- predict = pred_func(current_row[x - 1], upper_row + x);
+ predict = pred_func(&current_row[x - 1], upper_row + x);
}
#if (WEBP_NEAR_LOSSLESS == 1)
if (max_quantization == 1 || mode == 0 || y == 0 || y == height - 1 ||