mirror of
https://github.com/v0l/route96.git
synced 2025-06-17 00:28:50 +00:00
fix: negative duration
This commit is contained in:
@ -106,7 +106,9 @@ impl FileStore {
|
||||
v_stream.map(|v| v.width as u32),
|
||||
v_stream.map(|v| v.height as u32),
|
||||
mime,
|
||||
probe.as_ref().map(|p| p.duration),
|
||||
probe
|
||||
.as_ref()
|
||||
.map(|p| if p.duration < 0. { 0.0 } else { p.duration }),
|
||||
probe.as_ref().map(|p| p.bitrate as u32),
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user