Fix an issue where there was a newline in HAS_AUDIO variable

This commit is contained in:
Kuba Orlik 2022-10-16 12:29:49 +02:00
parent 4139aaf0d4
commit 5863a2fa38
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ OPTS=();
AUDIO_FILTER="[0:a]atempo=$(echo "$INV_RATIO")[a]";
HAS_AUDIO=$(ffprobe "$IN_FILE" 2>&1 | grep Stream | grep --count Audio || echo "0");
HAS_AUDIO=$( (ffprobe "$IN_FILE" || echo "") 2>&1 | grep Stream | grep --count Audio | tail -n 1);
HAS_VIDEO=$(ffprobe "$IN_FILE" 2>&1 | grep Stream | grep --count Video || echo "0");
slow () {