Commit 0ed74d9f authored by Raphaël Zumer's avatar Raphaël Zumer Committed by Thomas Daede

Fix division by zero in CLI output when no inter frame is coded

parent 10a8e6d8
......@@ -389,7 +389,7 @@ impl ProgressInfo {
Intra Only: {:>6} avg size: {:>7} B\n\
Switch: {:>6} avg size: {:>7} B",
key, key_size / key,
inter, inter_size / inter,
inter, inter_size.checked_div(inter).unwrap_or(0),
ionly, ionly_size / key,
switch, switch_size / key
)
......
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