Merge pull request #21211 from Snuffleupagus/JpxStream-rm-params

Don't provide unused /DecodeParms when initializing `JpxStream`
This commit is contained in:
Tim van der Meij 2026-05-02 14:11:36 +02:00 committed by GitHub
commit 6d5e8696c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -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() {

View File

@ -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);