Skip to content

Commit 9faa904

Browse files
committed
Fix old Hero5 files
1 parent 6d372e2 commit 9faa904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gopro/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ impl GoPro {
390390
}
391391
}
392392
}
393-
if first_tsus.is_some() && last_tsus.is_some() && count > 0 {
393+
if first_tsus.is_some() && last_tsus.is_some() && count > 0 && last_tsus.unwrap() > first_tsus.unwrap() {
394394
Some((last_tsus.unwrap() as f64 - first_tsus.unwrap() as f64) / (count - last_len).max(1) as f64 / 1000.0)
395395
} else if count > 0 {
396396
Some(total_duration_ms / count as f64)

0 commit comments

Comments
 (0)