summaryrefslogtreecommitdiff
path: root/localvideowebencode
diff options
context:
space:
mode:
Diffstat (limited to 'localvideowebencode')
-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