diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-26 12:05:09 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-26 12:05:09 +0000 |
commit | 5557c6fe5cbf38ed36fa3a0b9e5f5cdc925ba443 (patch) | |
tree | f73cd6d89dc3982ce2a6c6cd931993a69fa83b5d /libs/ardour/audiosource.cc | |
parent | 095d2bd5b287362b3faf0026b479227236399be1 (diff) |
revert patch for 2388
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5922 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audiosource.cc')
-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 3d6e804a60..36a667d109 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -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; |