fix(msin): actually fix the issue...
This commit is contained in:
parent
001c747103
commit
bdfd6cba2e
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
@ -386,7 +386,7 @@ func analyzeFramePersistence(videoPath string, tolerance uint64, csvOutput strin
|
|||
copy(previousFrame.Pix, currentFrame.Pix)
|
||||
hasFirstFrame = true
|
||||
uniqueFramesInCurrentSecond = 1
|
||||
totalUniqueFrames = 0
|
||||
totalUniqueFrames = 1
|
||||
currentUniqueFrameDuration = 1
|
||||
|
||||
// Store data for first frame
|
||||
|
@ -514,7 +514,7 @@ func analyzeFramePersistence(videoPath string, tolerance uint64, csvOutput strin
|
|||
// SECOND PASS: Calculate real frame times and write CSV
|
||||
if csvWriter != nil {
|
||||
for i, frameData := range frameAnalysisData {
|
||||
realFrameTimeMs := float64(uniqueFrameDurations[frameData.uniqueFrameCount]) * frameTimeMs
|
||||
realFrameTimeMs := float64(uniqueFrameDurations[frameData.uniqueFrameCount-1]) * frameTimeMs
|
||||
err := csvWriter.Write([]string{
|
||||
strconv.Itoa(frameData.frameNumber),
|
||||
fmt.Sprintf("%.2f", frameData.effectiveFPS),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue