Skip to content

Commit 2f61d94

Browse files
Update src/ImageSharp/Formats/Webp/Lossless/HistogramEncoder.cs
Co-authored-by: Anton Firszov <[email protected]>
1 parent 74a09bf commit 2f61d94

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,7 @@ private static bool HistogramCombineStochastic(Vp8LHistogramSet histograms, int
383383
idx2 = mappings[idx2];
384384

385385
// Calculate cost reduction on combination.
386-
double currCost = 0;
387-
currCost = HistoPriorityListPush(histoPriorityList, maxSize, histograms, idx1, idx2, bestCost, stats, bitsEntropy);
386+
double currCost = HistoPriorityListPush(histoPriorityList, maxSize, histograms, idx1, idx2, bestCost, stats, bitsEntropy);
388387

389388
// Found a better pair?
390389
if (currCost < 0)

0 commit comments

Comments
 (0)