mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Merge pull request #11523 from Snuffleupagus/issue-10880
Add a heuristic, in `src/core/jpg.js`, to handle JPEG images with a wildly incorrect SOF (Start of Frame) `scanLines` parameter (issue 10880)
This commit is contained in:
commit
1a97c142b3
6 changed files with 163 additions and 6 deletions
|
@ -512,7 +512,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
this.xref,
|
||||
resources,
|
||||
this.pdfFunctionFactory
|
||||
)
|
||||
) &&
|
||||
image.maybeValidDimensions
|
||||
) {
|
||||
// These JPEGs don't need any more processing so we can just send it.
|
||||
return this.handler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue