diff --git a/src/core/jpx_stream.js b/src/core/jpx_stream.js index ded33062b..f38c2bb58 100644 --- a/src/core/jpx_stream.js +++ b/src/core/jpx_stream.js @@ -22,13 +22,12 @@ import { shadow } from "../shared/util.js"; * the stream behaves like all the other DecodeStreams. */ class JpxStream extends DecodeStream { - constructor(stream, maybeLength, params) { + constructor(stream, maybeLength) { super(maybeLength); this.stream = stream; this.dict = stream.dict; this.maybeLength = maybeLength; - this.params = params; } get bytes() { diff --git a/src/core/parser.js b/src/core/parser.js index b608f5612..78c660088 100644 --- a/src/core/parser.js +++ b/src/core/parser.js @@ -808,7 +808,7 @@ class Parser { return new JpegStream(stream, maybeLength, params); case "JPX": case "JPXDecode": - return new JpxStream(stream, maybeLength, params); + return new JpxStream(stream, maybeLength); case "A85": case "ASCII85Decode": return new Ascii85Stream(stream, maybeLength);