give confused Scottie a fighting chance

This commit is contained in:
Ahmet Inan 2024-04-20 08:55:33 +02:00
parent e843719923
commit 705a49d214

View file

@ -145,7 +145,7 @@ public class Decoder {
}
for (int i = 0; i < lines.length; ++i)
copyLines(mode.decodeScanLine(evenBuffer, oddBuffer, scanLineBuffer, pulses[i], lines[i]));
int shift = pulses[pulses.length - 1];
int shift = pulses[pulses.length - 1] - (meanSamples * 3) / 4;
adjustSyncPulses(last5msSyncPulses, shift);
adjustSyncPulses(last9msSyncPulses, shift);
adjustSyncPulses(last20msSyncPulses, shift);