mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
simpler approach to determine negative time deltas
This commit is contained in:
parent
a8d6f332a8
commit
d40fe5b022
1 changed files with 2 additions and 2 deletions
|
|
@ -216,9 +216,9 @@ fn generate_chromaprint(
|
||||||
) -> Result<Vec<u32>> {
|
) -> Result<Vec<u32>> {
|
||||||
let mut ss_argument: &TimeDelta = &start.checked_sub(offset).unwrap();
|
let mut ss_argument: &TimeDelta = &start.checked_sub(offset).unwrap();
|
||||||
let mut offset_argument = &TimeDelta::zero();
|
let mut offset_argument = &TimeDelta::zero();
|
||||||
if offset.abs() > *offset {
|
if *offset < TimeDelta::zero() {
|
||||||
ss_argument = start;
|
ss_argument = start;
|
||||||
offset_argument = &offset;
|
offset_argument = offset;
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut command = Command::new("ffmpeg");
|
let mut command = Command::new("ffmpeg");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue