13
0

revert patch for 2388 (from 2.0-ongoing)

git-svn-id: svn://localhost/ardour2/branches/3.0@5923 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-10-26 12:06:02 +00:00
parent f53b49e402
commit 5dd8dc0db3

View File

@ -394,7 +394,7 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, nframes_t npeaks, sframes_t s
}
if (zero_fill) {
memset (peaks + npeaks - zero_fill, 0, sizeof (PeakData) * zero_fill);
memset (&peaks[npeaks], 0, sizeof (PeakData) * zero_fill);
}
return 0;
@ -505,7 +505,7 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, nframes_t npeaks, sframes_t s
}
if (zero_fill) {
memset (peaks + npeaks - zero_fill, 0, sizeof (PeakData) * zero_fill);
memset (&peaks[npeaks], 0, sizeof (PeakData) * zero_fill);
}
ret = 0;
@ -583,7 +583,7 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, nframes_t npeaks, sframes_t s
}
if (zero_fill) {
memset (peaks + npeaks - zero_fill, 0, sizeof (PeakData) * zero_fill);
memset (&peaks[npeaks], 0, sizeof (PeakData) * zero_fill);
}
ret = 0;