dvd-sector-copy.c: Calculate the clear-area size consistently.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 8 Apr 2022 17:24:22 +0000 (18:24 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 8 Apr 2022 17:24:22 +0000 (18:24 +0100)
commit27c10313957eebbde9f788f645316e03f32861d4
tree1fee3eec574f8a9df1df60c42607532bdc5901da
parent4239a14381106d531ccbf872d7471383a7e310fd
dvd-sector-copy.c: Calculate the clear-area size consistently.

This should be determined as a (possibly fractional) multiple of the
distance from the start of the bad region to the current position.
Alas, the code for the bounding stage incorrectly used the distance from
the previous position to the new one.  The inconsistency between the
bounding and refinement stages of the recovery algorithm could lead to
failed invariants and a nonsense result.
dvd-sector-copy.c