From 0579bc5334037068d5cb76e2c6851fec9968f687 Mon Sep 17 00:00:00 2001 From: michaelmartinez Date: Tue, 23 Jun 2015 13:22:49 -0500 Subject: [PATCH] fixed for RGB data --- src/decoder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decoder.js b/src/decoder.js index b4c7720..a483a7b 100644 --- a/src/decoder.js +++ b/src/decoder.js @@ -676,7 +676,7 @@ jpeg.lossless.Decoder.prototype.readNumber = function() { jpeg.lossless.Decoder.prototype.scaleIDCT = function (matrix) { /*jslint bitwise: true */ - var p = [[]], t0, t1, t2, t3, i, src0, src1, src2, src3, src4, src5, src6, src7, det0, det1, det2, det3, det4, + var p = jpeg.lossless.Utils.createArray(8, 8), t0, t1, t2, t3, i, src0, src1, src2, src3, src4, src5, src6, src7, det0, det1, det2, det3, det4, det5, det6, det7, mindex = 0; for (i = 0; i < 8; i+=1) {