We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c19c98 commit 8d9bd86Copy full SHA for 8d9bd86
1 file changed
src/videosource.cpp
@@ -1101,6 +1101,10 @@ bool BestVideoSource::IndexTrack(const ProgressFunction &Progress) {
1101
// It's CFR so we know every frame duration is 1 unit
1102
for (size_t i = 0; i < TrackIndex.Frames.size(); i++)
1103
TrackIndex.Frames[i].PTS = i;
1104
+ } else if (VP.Duration == TrackIndex.Frames.size() * 2) {
1105
+ // It's with 99.99% certainty CFR so we almost know every frame duration is 2 units
1106
+ for (size_t i = 0; i < TrackIndex.Frames.size(); i++)
1107
+ TrackIndex.Frames[i].PTS = i * 2;
1108
}
1109
1110
0 commit comments