+# If the aspect ratio option was specified, set the scale variable appropriately for mencoder
+if [ "$aspect" != "" ]; then
+ echo "$aspect" | grep -q "x"
+ if [ $? == 0 ]; then
+ echo "-E- You must specify the aspect option with a value whose format is W:H"
+ exit 1
+ fi
+ echo "$aspect" | grep -q ":"
+ if [ $? != 0 ]; then
+ SCALE=",scale -zoom -xy $aspect"
+ else
+ SCALE=",scale=$aspect"
+ fi
+fi
+
+