summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_helpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/cpdfsdk_helpers.cpp')
-rw-r--r--fpdfsdk/cpdfsdk_helpers.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/fpdfsdk/cpdfsdk_helpers.cpp b/fpdfsdk/cpdfsdk_helpers.cpp
index 1b90497456..5498909c32 100644
--- a/fpdfsdk/cpdfsdk_helpers.cpp
+++ b/fpdfsdk/cpdfsdk_helpers.cpp
@@ -330,8 +330,9 @@ unsigned long DecodeStreamMaybeCopyAndReturnLength(const CPDF_Stream* stream,
ASSERT(stream);
uint8_t* data = stream->GetRawData();
uint32_t len = stream->GetRawSize();
- CPDF_Dictionary* dict = stream->GetDict();
- CPDF_Object* decoder = dict ? dict->GetDirectObjectFor("Filter") : nullptr;
+ const CPDF_Dictionary* dict = stream->GetDict();
+ const CPDF_Object* decoder =
+ dict ? dict->GetDirectObjectFor("Filter") : nullptr;
if (decoder && (decoder->IsArray() || decoder->IsName())) {
// Decode the stream if one or more stream filters are specified.
uint8_t* decoded_data = nullptr;