From 61932fcf894fa0bb3f7f7fe1978b35c1416192f6 Mon Sep 17 00:00:00 2001
From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com>
Date: Sat, 7 May 2022 21:11:59 -0500
Subject: [PATCH] Change threshold
---
.../ScheduledTasks/FingerprinterTask.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs
index b93b0da..6b5804f 100644
--- a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs
+++ b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs
@@ -22,7 +22,7 @@ public class FingerprinterTask : IScheduledTask {
///
/// Maximum number of bits (out of 32 total) that can be different between segments before they are considered dissimilar.
///
- private const double MAXIMUM_DIFFERENCES = 5;
+ private const double MAXIMUM_DIFFERENCES = 3;
///
/// Maximum time permitted between timestamps before they are considered non-contiguous.
@@ -309,7 +309,7 @@ public class FingerprinterTask : IScheduledTask {
var rhsPosition = i + rightOffset;
var diff = lhs[lhsPosition] ^ rhs[rhsPosition];
- // If the difference between the samples is small (< 5/32), flag both times as similar.
+ // If the difference between the samples is small, flag both times as similar.
if (countBits(diff) > MAXIMUM_DIFFERENCES)
{
continue;