1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 12:17:12 +00:00

TOOLS: idet: use quotes for the verdict value

ShellCheck warns about "vara-varb" about not being in $(()), but we
actually want the literal string, so quote it. Also fix a typo.
This commit is contained in:
Ben Boeckel 2014-09-15 20:51:00 -04:00 committed by wm4
parent 11c044aa48
commit 5fd8660f5f

View File

@ -52,27 +52,27 @@ judge()
[ -n "$ILDETECT_FORCE_RUN" ] || exit 8
echo >&2 "Assuming interlacing."
if [ "$tff" -gt $((bff * 10)) ]; then
verdict=interlaced-tff
verdict="interlaced-tff"
elif [ "$bff" -gt $((tff * 10)) ]; then
verdict=interlaced-bff
verdict="interlaced-bff"
else
verdict=interlaced
verdict="interlaced"
fi
elif [ $((interlaced * 20)) -gt "$progressive" ]; then
# At least 5% of the frames are interlaced!
if [ "$tff" -gt $((bff * 10)) ]; then
verdict=interlaced-tff
verdict="interlaced-tff"
elif [ "$bff" -gt $((tff * 10)) ]; then
verdict=interlaced-bff
verdict="interlaced-bff"
else
echo >&2 "ERROR: Content is interlaced, but can't determine field order."
[ -n "$ILDETECT_FORCE_RUN" ] || exit 8
echo >&2 "Assuming interlacing with default field order."
verdict=interlaced
verdict="interlaced"
fi
else
# Likely progrssive.
verdict=progressive
# Likely progressive
verdict="progressive"
fi
echo "$verdict"