From 8c2aa0f375b138c55718f3b447007d670eedfeb6 Mon Sep 17 00:00:00 2001 From: q3aql Date: Sat, 11 Feb 2023 14:46:48 +0100 Subject: [PATCH] Fix IFS unset --- src/ks-avi | 3 ++- src/ks-crop | 3 ++- src/ks-mix | 3 ++- src/ks-mp4 | 3 ++- src/ks-mp4k | 3 ++- src/ks-mp4s | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/ks-avi b/src/ks-avi index 3d98f73..cc0c8d0 100755 --- a/src/ks-avi +++ b/src/ks-avi @@ -13,7 +13,8 @@ M_DATE="100223" ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1) IFS="abcdefghijklmnopqrstyvwxzABCDEFHIJKLMNOPQRSTYVWXZ@/()" ffmpeg_version=$(echo ${ffmpeg_version}) -IFS="" +IFS=$' \t\n' +unset IFS if [ -z "${ffmpeg_version}" ] ; then video_sync="vsync" else diff --git a/src/ks-crop b/src/ks-crop index 30cb3e3..42c68e9 100755 --- a/src/ks-crop +++ b/src/ks-crop @@ -13,7 +13,8 @@ M_DATE="100223" ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1) IFS="abcdefghijklmnopqrstyvwxzABCDEFHIJKLMNOPQRSTYVWXZ@/()" ffmpeg_version=$(echo ${ffmpeg_version}) -IFS="" +IFS=$' \t\n' +unset IFS if [ -z "${ffmpeg_version}" ] ; then video_sync="vsync" else diff --git a/src/ks-mix b/src/ks-mix index 02d3340..2b70fab 100755 --- a/src/ks-mix +++ b/src/ks-mix @@ -13,7 +13,8 @@ M_DATE="100223" ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1) IFS="abcdefghijklmnopqrstyvwxzABCDEFHIJKLMNOPQRSTYVWXZ@/()" ffmpeg_version=$(echo ${ffmpeg_version}) -IFS="" +IFS=$' \t\n' +unset IFS if [ -z "${ffmpeg_version}" ] ; then video_sync="vsync" else diff --git a/src/ks-mp4 b/src/ks-mp4 index 76d7f30..4253bc3 100755 --- a/src/ks-mp4 +++ b/src/ks-mp4 @@ -13,7 +13,8 @@ M_DATE="100223" ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1) IFS="abcdefghijklmnopqrstyvwxzABCDEFHIJKLMNOPQRSTYVWXZ@/()" ffmpeg_version=$(echo ${ffmpeg_version}) -IFS="" +IFS=$' \t\n' +unset IFS if [ -z "${ffmpeg_version}" ] ; then video_sync="vsync" else diff --git a/src/ks-mp4k b/src/ks-mp4k index e3122c7..31d23fe 100755 --- a/src/ks-mp4k +++ b/src/ks-mp4k @@ -13,7 +13,8 @@ M_DATE="100223" ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1) IFS="abcdefghijklmnopqrstyvwxzABCDEFHIJKLMNOPQRSTYVWXZ@/()" ffmpeg_version=$(echo ${ffmpeg_version}) -IFS="" +IFS=$' \t\n' +unset IFS if [ -z "${ffmpeg_version}" ] ; then video_sync="vsync" else diff --git a/src/ks-mp4s b/src/ks-mp4s index a5df4bc..0ce6d7e 100755 --- a/src/ks-mp4s +++ b/src/ks-mp4s @@ -13,7 +13,8 @@ M_DATE="100223" ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1) IFS="abcdefghijklmnopqrstyvwxzABCDEFHIJKLMNOPQRSTYVWXZ@/()" ffmpeg_version=$(echo ${ffmpeg_version}) -IFS="" +IFS=$' \t\n' +unset IFS if [ -z "${ffmpeg_version}" ] ; then video_sync="vsync" else