Fixed the FFMpegReader to discard the first audio and video frames it finds after a seek, since they sometimes are missing information. This fixed many issues with the time mapping curves and audio reversing and fast forwarding.

This commit is contained in:
Jonathan Thomas
2012-10-22 17:05:34 -05:00
parent 082efa23cc
commit 612bb25f5f
4 changed files with 50 additions and 12 deletions

View File

@@ -427,6 +427,8 @@ tr1::shared_ptr<Frame> Clip::get_time_mapped_frame(tr1::shared_ptr<Frame> frame,
// Add reversed samples to the frame object
for (int channel = 0; channel < channels; channel++)
new_frame->AddAudio(channel, 0, samples->getSampleData(channel), number_of_samples, 1.0f);
}
// clean up