From b2ea2c0bd914599c32538b069d7032b6637f0e86 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Wed, 16 Nov 2022 01:03:28 +0100 Subject: [PATCH] scripts/cut-video: fix for octal numbers Fix for the idiotic design that a number with a leading zero must be octal --- scripts/cut-video | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cut-video b/scripts/cut-video index f55f0c3..5916112 100755 --- a/scripts/cut-video +++ b/scripts/cut-video @@ -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"