From a8715f6f9675fe2404b088db49f8a93570ee72c6 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 2 May 2026 12:20:28 +0200 Subject: [PATCH] Don't provide unused /DecodeParms when initializing `JpxStream` --- src/core/jpx_stream.js | 3 +-- src/core/parser.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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);