13
0

do not advance pointer; avoids illegal over-read during mix_buffers_no_gain()

This commit is contained in:
Paul Davis 2017-06-29 11:43:10 -04:00
parent 30c6096d20
commit 3be9659637

View File

@ -355,8 +355,7 @@ DiskReader::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame,
memcpy (disk_signal, memcpy (disk_signal,
chaninfo->rw_vector.buf[0], chaninfo->rw_vector.buf[0],
chaninfo->rw_vector.len[0] * sizeof (Sample)); chaninfo->rw_vector.len[0] * sizeof (Sample));
disk_signal += chaninfo->rw_vector.len[0]; memcpy (disk_signal + chaninfo->rw_vector.len[0],
memcpy (disk_signal,
chaninfo->rw_vector.buf[1], chaninfo->rw_vector.buf[1],
(playback_distance - chaninfo->rw_vector.len[0]) * sizeof (Sample)); (playback_distance - chaninfo->rw_vector.len[0]) * sizeof (Sample));
} }