summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfeditimg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/fpdfeditimg.cpp')
-rw-r--r--fpdfsdk/fpdfeditimg.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/fpdfeditimg.cpp b/fpdfsdk/fpdfeditimg.cpp
index 0d7ba56559..335c152546 100644
--- a/fpdfsdk/fpdfeditimg.cpp
+++ b/fpdfsdk/fpdfeditimg.cpp
@@ -290,11 +290,11 @@ FPDFImageObj_GetImageMetadata(FPDF_PAGEOBJECT image_object,
return true;
auto pSource = pdfium::MakeRetain<CPDF_DIBSource>();
- if (!pSource->StartLoadDIBSource(pPage->m_pDocument.Get(), pImg->GetStream(),
- false, nullptr,
- pPage->m_pPageResources.Get())) {
+ CPDF_DIBSource::LoadState ret = pSource->StartLoadDIBSource(
+ pPage->m_pDocument.Get(), pImg->GetStream(), false, nullptr,
+ pPage->m_pPageResources.Get());
+ if (ret == CPDF_DIBSource::LoadState::kFail)
return true;
- }
metadata->bits_per_pixel = pSource->GetBPP();
if (pSource->GetColorSpace())