diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-01-30 20:20:56 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-01-31 15:26:37 +0100 |
commit | ec9e310c9ea9cee8d9e16cad2a68f0ad096f3a4b (patch) | |
tree | 970f4526f39909838f837eb1de5ac672881e9d58 /libqpdf/QPDFObjectHandle.cc | |
parent | 31372edce0b60211c7af98340b3afa054f414ca4 (diff) | |
download | qpdf-ec9e310c9ea9cee8d9e16cad2a68f0ad096f3a4b.tar.zst |
Refactor QPDFTokenizer's inline image handling
Add a version of expectInlineImage that takes an input source and
searches for EI. This is in preparation for improving the way EI is
found. This commit just refactors the code without changing the
functionality and adds tests to make sure the old and new code behave
identically.
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r-- | libqpdf/QPDFObjectHandle.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc index ecaa49bd..de5d56b3 100644 --- a/libqpdf/QPDFObjectHandle.cc +++ b/libqpdf/QPDFObjectHandle.cc @@ -1558,7 +1558,7 @@ QPDFObjectHandle::parseContentStream_data( // terminated the token. Read until end of inline image. char ch; input->read(&ch, 1); - tokenizer.expectInlineImage(); + tokenizer.expectInlineImage(input); QPDFTokenizer::Token t = tokenizer.readToken(input, description, true); if (t.getType() == QPDFTokenizer::tt_bad) |