From b694d6c7ce904ee566cdae47402e1a0e853d7738 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 6 Feb 2011 16:55:54 +0100 Subject: Fix resolve width and height from size option (was reversed). --- localvideowebencode | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/localvideowebencode b/localvideowebencode index 1e4cc7e..0f4f3dc 100755 --- a/localvideowebencode +++ b/localvideowebencode @@ -69,8 +69,8 @@ filebase=$(echo "$infile" | perl -pe 's/\.[^.]*//') # TODO: Make optional with input size as default # TODO: Make each half of size optional with default resolved from input aspect ratio [ -n "$size" ] || exit1 "Unknown output size!" -width=$(echo "$size" | perl -pe 's/[^x]*x//') -height=$(echo "$size" | perl -pe 's/x[^x]*//') +width=$(echo "$size" | perl -pe 's/x[^x]*//') +height=$(echo "$size" | perl -pe 's/[^x]*x//') heightplus=${height:+$(($height+4))} # fallback graphics title -- cgit v1.2.3