summaryrefslogtreecommitdiffstats
path: root/TOOLS/idet.sh
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2014-09-15 20:51:00 -0400
committerwm4 <wm4@nowhere>2014-09-16 17:32:39 +0200
commit5fd8660f5ff4107b7cea05623eaae505fed6b6e5 (patch)
treefed5cdcf7b9a14725905d4899eecd6f69bdb3d16 /TOOLS/idet.sh
parent11c044aa48e4dc14c86cdf37591115a2590e48f8 (diff)
downloadmpv-5fd8660f5ff4107b7cea05623eaae505fed6b6e5.tar.bz2
mpv-5fd8660f5ff4107b7cea05623eaae505fed6b6e5.tar.xz
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.
Diffstat (limited to 'TOOLS/idet.sh')
-rwxr-xr-xTOOLS/idet.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/TOOLS/idet.sh b/TOOLS/idet.sh
index 50b5bbcf83..9a2e698ea9 100755
--- a/TOOLS/idet.sh
+++ b/TOOLS/idet.sh
@@ -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"