Skip to content

Commit

Permalink
Extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
myrsloik committed Feb 27, 2024
1 parent 3a5d85c commit 9b48d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/videosource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ FFMS_VideoSource::FFMS_VideoSource(const char *SourceFile, FFMS_Index &Index, in
double TN = (double)(Frames.TB.Num);
VP.FPSDenominator = (unsigned int)(PTSDiff * TN / TD * 1000.0 / (TotalFrames - 1));
VP.FPSNumerator = 1000000;
} else if (TotalFrames == 1) {
} else if (TotalFrames == 1 && Frames.LastDuration > 0) {
VP.FPSDenominator *= Frames.LastDuration;
}

Expand Down

0 comments on commit 9b48d0c

Please sign in to comment.