diff options
author | Alex Marsev <alex.marsev@gmail.com> | 2016-02-22 16:44:51 +0300 |
---|---|---|
committer | Alex Marsev <alex.marsev@gmail.com> | 2016-02-24 13:14:34 +0300 |
commit | 5d351fcc2de279dca0d4509588d4d26e5e20503f (patch) | |
tree | f756b19f5be97696f8b72ee707031c7e80e5486b | |
parent | af6d327bc3682977488d8c8f6f193592d4a927ed (diff) |
Return two missing lines to SampleCorrection
-rw-r--r-- | src/SampleCorrection.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SampleCorrection.cpp b/src/SampleCorrection.cpp index 3af024d..104735e 100644 --- a/src/SampleCorrection.cpp +++ b/src/SampleCorrection.cpp @@ -73,6 +73,8 @@ namespace SaneAudioRenderer sampleProps.tStart, sampleProps.tStop, "]");
chunk.ShrinkHead(chunk.GetFrameCount() > cropFrames ? chunk.GetFrameCount() - cropFrames : 0);
+
+ sampleProps.tStart += FramesToTime(cropFrames);
}
}
else if ((sampleProps.dwSampleFlags & AM_SAMPLE_TIMEVALID) && sampleProps.tStart > m_lastFrameEnd)
@@ -87,6 +89,8 @@ namespace SaneAudioRenderer sampleProps.tStart, sampleProps.tStop, "]");
chunk.PadHead(padFrames);
+
+ sampleProps.tStart -= FramesToTime(padFrames);
}
}
}
|