Commit c9df3472 authored by Timothy B. Terriberry's avatar Timothy B. Terriberry Committed by Derek Buitenhuis
Browse files

Fix bitrate display.

"kb/s" in communication always means 1000 b/s.
parent dc7d8b81
...@@ -704,7 +704,7 @@ impl fmt::Display for ProgressInfo { ...@@ -704,7 +704,7 @@ impl fmt::Display for ProgressInfo {
self.frames_encoded(), self.frames_encoded(),
total_frames, total_frames,
self.encoding_fps(), self.encoding_fps(),
self.bitrate() as f64 / 1024f64, self.bitrate() as f64 / 1000f64,
self.estimated_size() as f64 / (1024 * 1024) as f64, self.estimated_size() as f64 / (1024 * 1024) as f64,
self.estimated_time() self.estimated_time()
) )
...@@ -714,7 +714,7 @@ impl fmt::Display for ProgressInfo { ...@@ -714,7 +714,7 @@ impl fmt::Display for ProgressInfo {
"encoded {} frames, {:.3} fps, {:.2} Kb/s", "encoded {} frames, {:.3} fps, {:.2} Kb/s",
self.frames_encoded(), self.frames_encoded(),
self.encoding_fps(), self.encoding_fps(),
self.bitrate() as f64 / 1024f64 self.bitrate() as f64 / 1000f64
) )
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment