13
0

diskreader: fix decrement of start before zero (#8647)

This commit is contained in:
Paul Davis 2021-04-21 22:50:26 -06:00
parent 4c1a82a153
commit 5ebe78ad2d

View File

@ -1019,6 +1019,7 @@ DiskReader::audio_read (Sample* sum_buffer,
if (reversed) {
start -= cnt;
start = max (samplepos_t (0), start);
}
/* We need this while loop in case we hit a loop boundary, in which case our read from