summaryrefslogtreecommitdiff
path: root/localv4ldump
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2013-09-12 21:16:34 +0200
committerJonas Smedegaard <dr@jones.dk>2013-09-12 21:16:34 +0200
commit2dec6646175c868bc9e8c5c75b722210e4980e6d (patch)
tree49ea58cca38421fcb783442f1174cde02c57ccc9 /localv4ldump
parentb041f729e8c322024f131e9297b43429e776ed11 (diff)
Really fix bashism.
Diffstat (limited to 'localv4ldump')
-rwxr-xr-xlocalv4ldump4
1 files changed, 2 insertions, 2 deletions
diff --git a/localv4ldump b/localv4ldump
index 0c9a214..0babab3 100755
--- a/localv4ldump
+++ b/localv4ldump
@@ -91,7 +91,7 @@ for input in $ainputs; do
esac
ainargs="${ainargs:+$ainargs }-f alsa -ar 44100 ${achannels:+-ac $achannels} -i hw:$input"
amaps="${amaps:+$amaps }-map $i:a"
- $((i=i+1))
+ i=$(expr i+1)
done
vinargs=
vmaps=
@@ -110,7 +110,7 @@ FORMATS
[ -n "$format" ] || { echo "Skipping unsuitable input $input"; continue; }
vinargs="${vinargs:+$vinargs }-f video4linux2 -input_format $format ${inrate:+-framerate $inrate }-s $size -i $input"
vmaps="${vmaps:+$vmaps }-map $i:v:0"
- $((i=i+1))
+ i=$(expr i+1)
done
voutargs=${vinputs:+-c:v $vcodec $vf ${outrate:+-r $outrate}}
aoutargs=${ainputs:+-c:a $acodec}