Merge pull request #156 from Nicko98/master

Fix for issue KrumpetPirate#155
This commit is contained in:
KrumpetPirate 2021-02-25 22:03:22 -05:00 committed by GitHub
commit 7310e16222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -684,7 +684,7 @@ do
#ffmpeg version 4+ and on the output for all older versions. #ffmpeg version 4+ and on the output for all older versions.
split_input="" split_input=""
split_output="" split_output=""
if [ "$(($(ffmpeg -version | head -1 | cut -d \ -f 3 | cut -d . -f 1) > 3))" = "1" ]; then if [ "$(($(ffmpeg -version | sed -E 's/[^0-9]*([0-9]).*/\1/g;1q') > 3))" = "1" ]; then
split_input="-ss ${chapter_start%?} -to ${chapter_end}" split_input="-ss ${chapter_start%?} -to ${chapter_end}"
else else
split_output="-ss ${chapter_start%?} -to ${chapter_end}" split_output="-ss ${chapter_start%?} -to ${chapter_end}"