mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-05-31 07:11:00 +02:00
Merge pull request #21211 from Snuffleupagus/JpxStream-rm-params
Don't provide unused /DecodeParms when initializing `JpxStream`
This commit is contained in:
commit
6d5e8696c4
@ -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() {
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user