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:
Michele Guerini Rocco 2022-11-16 01:03:28 +01:00
parent b3a67ed73e
commit b2ea2c0bd9
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -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"