diff --git a/README.html b/README.html
index eac9ceb..fcd8e31 100644
--- a/README.html
+++ b/README.html
@@ -587,8 +587,8 @@ this corresponds to lowering the pitch by -0.318 semitones:
- Improved SoundTouch::flush() function so that it returns precisely the desired amount of samples for exact output duration control
- Redesigned quickseek algorithm for improved sound quality when using the quickseek mode. The new quickseek algorithm can find 99% as good results as the
- default full-scan mode, while the quickseek algorithm is remarkable less
- CPU intensive.
+ default full-scan mode, while the quickseek algorithm is remarkable less
+ CPU intensive.
- Added adaptive integer divider scaling for improved sound quality when using integer processing algorithm
@@ -855,6 +855,7 @@ submitted bugfixes:
Mathias Möhl
Yuval Naveh
Mats Palmgren
+ Chandni Patel
Paulo Pizarro
Andrey Ponomarenko
Blaise Potard
diff --git a/source/SoundTouch/TDStretch.cpp b/source/SoundTouch/TDStretch.cpp
index 8343f91..3403969 100644
--- a/source/SoundTouch/TDStretch.cpp
+++ b/source/SoundTouch/TDStretch.cpp
@@ -675,11 +675,10 @@ void TDStretch::processSamples()
}
else
{
- // Adjust processing offset at beginning of track:
- // - do not perform initial overlapping
- // - compensate expected value of 'seekBestOverlapPosition' offset landing to middle of seekLength
+ // Adjust processing offset at beginning of track by not perform initial overlapping
+ // and compensating that in the 'input buffer skip' calculation
isBeginning = false;
- int skip = overlapLength + seekLength / 2;
+ int skip = (int)(tempo * overlapLength + 0.5);
#ifdef SOUNDTOUCH_ALLOW_NONEXACT_SIMD_OPTIMIZATION
#ifdef SOUNDTOUCH_ALLOW_SSE