revert patch for 2388

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5922 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-10-26 12:05:09 +00:00
parent 095d2bd5b2
commit 5557c6fe5c

View file

@ -374,7 +374,7 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, nframes_t npeaks, nframes_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;
@ -485,7 +485,7 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, nframes_t npeaks, nframes_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;
@ -562,7 +562,7 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, nframes_t npeaks, nframes_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;