Increased the number of samples to look for gaps (based on the samples per frame value)

This commit is contained in:
Jonathan Thomas
2013-01-13 10:54:53 -06:00
parent 615be6603d
commit ebf3bad263
2 changed files with 7 additions and 6 deletions

View File

@@ -1131,7 +1131,7 @@ audio_packet_location FFmpegReader::GetAudioPTSLocation(int pts)
// Compare to previous audio packet (and fix small gaps due to varying PTS timestamps)
if (location.is_near(previous_packet_location, samples_per_frame, 1000))
if (location.is_near(previous_packet_location, samples_per_frame, samples_per_frame))
{
int orig_frame = location.frame;
int orig_start = location.sample_start;