Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/sanear.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Marsev <alex.marsev@gmail.com>2016-02-22 16:44:51 +0300
committerAlex Marsev <alex.marsev@gmail.com>2016-02-24 13:14:34 +0300
commit5d351fcc2de279dca0d4509588d4d26e5e20503f (patch)
treef756b19f5be97696f8b72ee707031c7e80e5486b
parentaf6d327bc3682977488d8c8f6f193592d4a927ed (diff)
Return two missing lines to SampleCorrection
-rw-r--r--src/SampleCorrection.cpp4
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);
}
}
}