fixed "avi2swf hangs" problem.