summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2011-02-06 16:55:54 +0100
committerJonas Smedegaard <dr@jones.dk>2011-02-06 16:55:54 +0100
commitb694d6c7ce904ee566cdae47402e1a0e853d7738 (patch)
treebacbf811b724a0b2de63d49a8742826fc5962ad0
parentbd681d813b3604b6cb5085c78e4980dfecedcb8c (diff)
Fix resolve width and height from size option (was reversed).
-rwxr-xr-xlocalvideowebencode4
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