1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Data is now created by jpg.js since we don't know the size.

This commit is contained in:
Brendan Dahl 2011-11-09 09:50:40 -08:00
parent 3d662cf08a
commit b872a08f4f
2 changed files with 2 additions and 4 deletions

View file

@ -829,9 +829,7 @@ var JpegStream = (function jpegStream() {
jpegImage.parse(this.bytes);
var width = jpegImage.width;
var height = jpegImage.height;
var dataLength = width * height * 4;
var data = new Uint8Array(dataLength);
jpegImage.getData(data, width, height, true);
var data = jpegImage.getData(width, height);
this.buffer = data;
this.bufferLength = data.length;
};