We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcd4549 commit 107800bCopy full SHA for 107800b
src/main.rs
@@ -352,8 +352,8 @@ impl eframe::App for AV1Studio {
352
}
353
354
let (ef, tf) = (
355
- self.encoded_frames.unwrap_or(0),
356
- self.total_frames.unwrap_or(0),
+ self.encoded_frames.unwrap_or_default(),
+ self.total_frames.unwrap_or_default(),
357
);
358
let progress = if tf == 0 { 0.0 } else { ef as f32 / tf as f32 };
359
ui.add(ProgressBar::new(progress).show_percentage());
0 commit comments