only print used encoding types

This commit is contained in:
Crispy 2024-04-13 12:13:24 +02:00
parent d07091b38d
commit 8acd684e59

View file

@ -51,9 +51,11 @@ fn main() {
frame_index += 1;
}
}
for (encoding, frames) in stats.iter() {
for (encoding, &frames) in stats.iter() {
if frames > 0 {
println!("{encoding:?} - {frames} frames");
}
}
println!();
println!(
"{} frames, total {} bytes (~{} bpf)",