scripts/cut-video: fix for octal numbers
Fix for the idiotic design that a number with a leading zero must be octal
This commit is contained in:
parent
b3a67ed73e
commit
b2ea2c0bd9
@ -2,7 +2,7 @@
|
||||
|
||||
ts2sec() {
|
||||
IFS=:; set -- $1
|
||||
echo $(($1*60*60 + $2*60 + $3))
|
||||
echo $((${1#0}*60*60 + ${2#0}*60 + ${3#0}))
|
||||
}
|
||||
|
||||
SRC="$1"
|
||||
|
Loading…
Reference in New Issue
Block a user