Merge pull request #568 from OpenShot/fix-resampling-in-mapper

FrameMapper + Resampling loses samples
This commit is contained in:
Jonathan Thomas
2020-09-14 18:50:09 -05:00
committed by GitHub

View File

@@ -487,7 +487,7 @@ std::shared_ptr<Frame> FrameMapper::GetFrame(int64_t requested_frame)
// includes some additional input samples on first iteration,
// and continues the offset to ensure that the sample rate
// converter isn't input limited.
const int EXTRA_INPUT_SAMPLES = 20;
const int EXTRA_INPUT_SAMPLES = 100;
// Extend end sample count by an additional EXTRA_INPUT_SAMPLES samples
copy_samples.sample_end += EXTRA_INPUT_SAMPLES;