From 8bbc70a18c36c22c28b28d160a8098e8083a42eb Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 27 Sep 2014 13:13:29 +0200 Subject: Fix apply --size. --- localvideowebencode | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'localvideowebencode') diff --git a/localvideowebencode b/localvideowebencode index a0a90c6..3b0a5d2 100755 --- a/localvideowebencode +++ b/localvideowebencode @@ -166,9 +166,10 @@ stem=${stem:-$(basename "$infile_first" | perl -pe 's/\.[^.]*//')} title=${title:-$stem} case "$profile" in + '') :;; *@*) while read s r foo; do - size="${size:-$s}" + profilesize="${size:-$s}" framerate="${framerate:-$r}" done << EOF $(echo "$profile" | perl -F@ -anE 'say join " ", @F') @@ -176,14 +177,14 @@ EOF ;; *p*) while read s r foo; do - size="${size:-${s}p}" + profilesize="${size:-${s}p}" framerate="${framerate:-$r}" done << EOF $(echo "$profile" | perl -Fp -anE 'say join " ", @F') EOF ;; *) - size="$profile" + profilesize="$profile" ;; esac @@ -200,6 +201,7 @@ case "$size" in 720p|wxga|hd) size=1280x720;; esac +size=${size:-$profilesize} if [ -n "$size" ]; then while read w h foo; do width="${width:-$w}" -- cgit v1.2.3