ffplay: factor display rectangle calculation to its own function