diff --git a/revid/revid.go b/revid/revid.go index aac404b5..74d4d3e5 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -260,8 +260,7 @@ func readWriteVideo(input string, output string) error { deltaTime := now.Sub(prevTime) // Convert nanosecs to secs elapsedTime += deltaTime if elapsedTime > bitrateOutputDelay*time.Nanosecond { - noOfBits := float64(clipSize * bitsInByte) - noOfBits = noOfBits / 1024.0 //to kbps + noOfBits := float64(clipSize * bitsInByte) / 1024.0 // to kbits fmt.Printf("Bitrate: %d kbps\n", int64(noOfBits/float64(deltaTime/1e9))) elapsedTime = time.Duration(0) }