From 5bed0f809afd8be5d01a31bc944c420fa562de45 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 12 Sep 2014 11:47:42 +0200 Subject: Rename → $infile_first. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- localvideowebencode | 8 ++++---- 1 file 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 -- cgit v1.2.3