diff options
Diffstat (limited to 'core/fxcodec/codec/ccodec_jpegmodule.cpp')
-rw-r--r-- | core/fxcodec/codec/ccodec_jpegmodule.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fxcodec/codec/ccodec_jpegmodule.cpp b/core/fxcodec/codec/ccodec_jpegmodule.cpp index 7c15aa35a0..4a6059ad18 100644 --- a/core/fxcodec/codec/ccodec_jpegmodule.cpp +++ b/core/fxcodec/codec/ccodec_jpegmodule.cpp @@ -413,8 +413,9 @@ std::unique_ptr<CodecModuleIface::Context> CCodec_JpegModule::Start() { } bool CCodec_JpegModule::Input(Context* pContext, - pdfium::span<uint8_t> src_buf, + RetainPtr<CFX_CodecMemory> codec_memory, CFX_DIBAttribute*) { + pdfium::span<uint8_t> src_buf = codec_memory->GetSpan(); auto* ctx = static_cast<CJpegContext*>(pContext); if (ctx->m_SkipSize) { if (ctx->m_SkipSize > src_buf.size()) { |