Project

General

Profile

Bug #1246 » 0004-mapimg2anim-Fix-ffmpeg-check.patch

S2_6 - Marko Lindqvist, 02/24/2025 09:01 PM

View differences:

scripts/mapimg2anim
fi
# check for required tools (ffmpeg)
have_ffmpef=TRUE
prog_ffmpeg=`command -v ffmpeg`
have_ffmpeg=TRUE
command -v ffmpeg > /dev/null
RES=$?
if [ $RES -ne 0 ]; then
have_ffmpef=FALSE
have_ffmpeg=FALSE
fi
# print usage
......
# ffmpeg is needed
function check_ffmpeg()
{
if [ "x$HAVE_FFMPEG" == "xFALSE" ]; then
if [ "x$have_ffmpeg" == "xFALSE" ]; then
# ffmpeg is missing
echo "ERROR: The required program 'ffmpeg' is missing."
exit 1
(2-2/2)