13
0

(forward ported from 2.0-ongoing) fix for peak data reading (carl h, #2388)

git-svn-id: svn://localhost/ardour2/branches/3.0@5921 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-10-26 01:07:45 +00:00
parent 1047b0773e
commit f53b49e402

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], 0, sizeof (PeakData) * zero_fill);
memset (peaks + npeaks - zero_fill, 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], 0, sizeof (PeakData) * zero_fill);
memset (peaks + npeaks - zero_fill, 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], 0, sizeof (PeakData) * zero_fill);
memset (peaks + npeaks - zero_fill, 0, sizeof (PeakData) * zero_fill);
}
ret = 0;