diff options
author | Jonas Smedegaard <dr@jones.dk> | 2011-02-06 16:55:54 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2011-02-06 16:55:54 +0100 |
commit | b694d6c7ce904ee566cdae47402e1a0e853d7738 (patch) | |
tree | bacbf811b724a0b2de63d49a8742826fc5962ad0 | |
parent | bd681d813b3604b6cb5085c78e4980dfecedcb8c (diff) |
Fix resolve width and height from size option (was reversed).
-rwxr-xr-x | localvideowebencode | 4 |
1 files 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 |