We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 181b77a commit fe3da2cCopy full SHA for fe3da2c
meme_generator_utils/src/decoder.rs
@@ -26,7 +26,7 @@ impl<'a> CodecExt for Codec<'a> {
26
.ok_or(Error::ImageDecodeError("Skia decode error".to_string()))?;
27
total_duration += frame_info.duration as f32 / 1000.0;
28
}
29
- Ok(total_duration / count as f32)
+ Ok((total_duration / count as f32).max(0.02))
30
31
32
fn first_frame(&mut self) -> Result<Image, Error> {
0 commit comments