diff options
Diffstat (limited to 'core/fpdfapi')
-rw-r--r-- | core/fpdfapi/page/cpdf_sampledfunc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/page/cpdf_sampledfunc.cpp b/core/fpdfapi/page/cpdf_sampledfunc.cpp index 205ce91eaa..cdedc862bb 100644 --- a/core/fpdfapi/page/cpdf_sampledfunc.cpp +++ b/core/fpdfapi/page/cpdf_sampledfunc.cpp @@ -125,8 +125,8 @@ bool CPDF_SampledFunc::v_Call(const float* inputs, float* results) const { if (!range_check.IsValid()) return false; - const uint8_t* pSampleData = m_pSampleStream->GetData(); - if (!pSampleData) + pdfium::span<const uint8_t> pSampleData = m_pSampleStream->GetSpan(); + if (pSampleData.empty()) return false; for (uint32_t j = 0; j < m_nOutputs; j++, bitpos += m_nBitsPerSample) { |