summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp
index b112540356..ae912ac50f 100644
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp
@@ -583,10 +583,10 @@ FX_BOOL CPDF_SampledFunc::v_Call(FX_FLOAT* inputs, FX_FLOAT* results) const
}
} else {
FX_SAFE_INT32 bitpos2 = blocksize[i];
- bitpos2 += 1;
- bitpos2 *= m_nBitsPerSample;
+ bitpos2 += pos;
bitpos2 *= m_nOutputs;
- bitpos2 += bitpos.ValueOrDie();
+ bitpos2 += j;
+ bitpos2 *= m_nBitsPerSample;
if (!bitpos2.IsValid()) {
return FALSE;
}