mirror of
https://github.com/xdsopl/robot36.git
synced 2026-01-11 10:39:58 +01:00
cant shift more than what we have
This commit is contained in:
parent
1a7c2d341f
commit
97820b504a
|
|
@ -216,7 +216,7 @@ public class Decoder {
|
|||
}
|
||||
|
||||
private void shiftSamples(int shift) {
|
||||
if (shift <= 0)
|
||||
if (shift <= 0 || shift > curSample)
|
||||
return;
|
||||
lastSyncPulseIndex -= shift;
|
||||
adjustSyncPulses(last5msSyncPulses, shift);
|
||||
|
|
|
|||
Loading…
Reference in a new issue