Index: core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp |
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp |
index 436cca6d99ce89aa7147f2c94ad20516e58be948..8656b72023b0676d3347ac6d159da309b276d57d 100644 |
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp |
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp |
@@ -470,7 +470,7 @@ CPDF_Image* CPDF_DocPageData::GetImage(CPDF_Object* pImageStream) { |
} |
CPDF_Image* pImage = new CPDF_Image(m_pPDFDoc); |
- pImage->LoadImageF((CPDF_Stream*)pImageStream, FALSE); |
+ pImage->LoadImageF(pImageStream->AsStream(), FALSE); |
CPDF_CountedImage* imageData = new CPDF_CountedImage(pImage); |
m_ImageMap[dwImageObjNum] = imageData; |