Browse Source

Update src/ImageSharp/Formats/Webp/Lossless/HistogramEncoder.cs

Co-authored-by: Anton Firszov <antonfir@gmail.com>
pull/2546/head
James Jackson-South 3 years ago
committed by GitHub
parent
commit
2f61d94e37
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/ImageSharp/Formats/Webp/Lossless/HistogramEncoder.cs

3
src/ImageSharp/Formats/Webp/Lossless/HistogramEncoder.cs

@ -383,8 +383,7 @@ internal static class HistogramEncoder
idx2 = mappings[idx2];
// Calculate cost reduction on combination.
double currCost = 0;
currCost = HistoPriorityListPush(histoPriorityList, maxSize, histograms, idx1, idx2, bestCost, stats, bitsEntropy);
double currCost = HistoPriorityListPush(histoPriorityList, maxSize, histograms, idx1, idx2, bestCost, stats, bitsEntropy);
// Found a better pair?
if (currCost < 0)

Loading…
Cancel
Save