summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-10-04 19:49:48 +0200
committerJonas Smedegaard <dr@jones.dk>2014-10-04 19:49:48 +0200
commit90d5574a1f70be15a6749f7920f8e881d5b3ca83 (patch)
treef45f7a0f16d2572ba221807a63def1dd6e7aee6f
parent341c9802bf57f5ebb060991b2d32f591f08f023b (diff)
Tidy sample resolving (undefined resolves to 0 in shell $(( )) math).
-rwxr-xr-xlocalvideowebencode2
1 files changed, 1 insertions, 1 deletions
diff --git a/localvideowebencode b/localvideowebencode
index 096282f..22805c7 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -426,7 +426,7 @@ avconv_chained="avconv -threads auto -y -v warning"
vpxenc_chained="vpxenc --quiet ${processors:+-t $((processors-1))}"
oggenc="oggenc"
opusenc="opusenc"
-_melt_sample="$infile_first ${sample:+in=${samplestart:-0} out=$((${samplestart:-0} + samplelength))}"
+_melt_sample="$infile_first ${sample:+in=$((samplestart)) out=$((samplestart + samplelength))}"
# filter options
_melt_video="progressive=1${framerate:+ frame_rate_num="$framerate_num" frame_rate_den="$framerate_den"}${size:+ s=${width:+$width}x${height:+$height}}${aspect:+ aspect=$aspect}"