Fix invalid 0% generate video file progress bar

This commit is contained in:
bytedream 2024-04-10 00:19:12 +02:00
parent 733d9f9787
commit dbbb445c55

View file

@ -1516,7 +1516,7 @@ async fn ffmpeg_progress<R: AsyncReadExt + Unpin>(
// is manually set to 100% here
if frame < total_frames {
if let Some(p) = &progress {
p.set_position(frame)
p.set_position(total_frames)
}
debug!("Processed frame [{}/{} 100%]", total_frames, total_frames);
}