Skip to content

Commit

Permalink
Further changes for #15 based on further samples... looking at this c…
Browse files Browse the repository at this point in the history
…hange I'm sure how the tests passed previously
  • Loading branch information
petergeneric committed Sep 23, 2021
1 parent 384b89c commit 0cba418
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ubv/ubvfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ func extractTimecodeAndRate(fields []string, line string, track *UbvTrack) {
} else if track.Rate == 0 && track.IsVideo {
if track.FrameCount < len(track.RateProbeWindow) {
// Compute rate based on current+last frame time
track.RateProbeWindow[track.FrameCount] = int(tbc / ((wc - track.RateProbeLastFrameWC) *100))
track.RateProbeWindow[track.FrameCount] = int(tbc / ((wc - track.RateProbeLastFrameWC)))
track.RateProbeLastFrameWC = wc
} else {
// Find the most frequent rate in the probe window
rate := guessVideoRate(track.RateProbeWindow)
Expand Down

0 comments on commit 0cba418

Please sign in to comment.