1
0
Fork 0

apng2webp: fix delay, for real this time 🥴

This commit is contained in:
tastytea 2023-04-28 21:29:59 +02:00
parent 8a7a3d4035
commit 6b9d56baae
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ local -i counter=1
for file in apngdis/apngframe*.txt; do
local delay=$(grep -Po '=\d+/\d+' ${file})
delay=${delay:1}
delay=$(( ( 1000 + ${delay%/*} ) / ${delay#*/} ))
delay=$(( ( ${delay%/*} * 1000 ) / ${delay#*/} ))
[[ ${#o_delay} -eq 2 ]] && delay=${o_delay[2]}
webpmux_options+=(-frame $(printf "%03d.webp" ${counter}) +${delay}+0+0+0-b)