Fixes issues #619 and #620

Call calcFrame() when setFormat() on non-flash targets.