summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-09-12 11:47:42 +0200
committerJonas Smedegaard <dr@jones.dk>2014-09-12 11:47:42 +0200
commit5bed0f809afd8be5d01a31bc944c420fa562de45 (patch)
tree333b7135a1f2b50f49cfa889c6a63c2fe2ffdf1f
parent998319a830cb492627d345ef20b0c8032a4e652b (diff)
Rename → $infile_first.
-rwxr-xr-xlocalvideowebencode8
1 files changed, 4 insertions, 4 deletions
diff --git a/localvideowebencode b/localvideowebencode
index 1f10ba1..21a98db 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -160,11 +160,11 @@ if [ -z "$infiles" ]; then
fi
# input filename (mandatory)
-infile=$(perl -e 'print pop @ARGV' $infiles)
-[ -e "$infile" ] || exit1 "Input file missing!"
+infile_first=$(perl -e 'print pop @ARGV' $infiles)
+[ -e "$infile_first" ] || exit1 "Input file missing!"
# resolve stem and title (if not explicitly set)
-stem=${stem:-$(basename "$infile" | perl -pe 's/\.[^.]*//')}
+stem=${stem:-$(basename "$infile_first" | perl -pe 's/\.[^.]*//')}
title=${title:-$stem}
case "$profile" in
@@ -253,7 +253,7 @@ case "$audio" in
channels=0
;;
'')
- channels=$(avprobe -v warning -show_streams "$infile" | perl -ne 's/channels=// and print $_')
+ channels=$(avprobe -v warning -show_streams "$infile_first" | perl -ne 's/channels=// and print $_')
;;
*) exit1 "Unknown audio style \"$audio\".";;
esac