Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
Bugfix for _reversePaeth
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelerz committed May 12, 2015
1 parent 4c2b2cf commit 8c721ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/png/processor/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ Filter.prototype._reverseAverage = function (input, output) {
*/
Filter.prototype._reversePaeth = function (input, output) {
for (var x = 0; x < input.scanLineLength; x++) {
output.data[output.offset + x] = this._getPixel(input, output, x) +
output.data[output.offset + x] =
this._getPixel(input, output, x) + this._paethPredictor(
this._getLeftPixel(input, output, x),
this._getTopPixel(input, output, x),
Expand Down

0 comments on commit 8c721ef

Please sign in to comment.