diff --git a/ChangeLog b/ChangeLog index ea6a3d1c1..65fecd504 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-03-28 Danny McRae + * lib/sample_buffer.cpp: + corrected miscalculation of buffer size in resample + 2005-03-26 Danny McRae * plugins/vibed/: diff --git a/src/lib/sample_buffer.cpp b/src/lib/sample_buffer.cpp index a9539bc80..61b546f90 100644 --- a/src/lib/sample_buffer.cpp +++ b/src/lib/sample_buffer.cpp @@ -1207,7 +1207,7 @@ sampleBuffer * sampleBuffer::resample( sampleFrame * _data, static_cast( src_frame_float ); const f_cnt_t src_frame = tLimit( static_cast( src_frame_float ), - 1, _frames - 2 ); + 1, _frames - 3 ); for( ch_cnt_t ch = 0; ch < DEFAULT_CHANNELS; ++ch ) { dst_buf[frame][ch] = cubicInterpolate(