diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-26 12:06:02 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-26 12:06:02 +0000 |
commit | 5dd8dc0db35bc851bcdcc9ff5212c4344eafb933 (patch) | |
tree | 14e0ffd0cdcc37dad2a3a0936b41fca1035a2986 /libs | |
parent | f53b49e402acd0e3396054f649ea02ccbf68000c (diff) |
revert patch for 2388 (from 2.0-ongoing)
git-svn-id: svn://localhost/ardour2/branches/3.0@5923 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/audiosource.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc index fb969fc8b9..883bc0b41b 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -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; |