Sorry for my poor explanation. I mean not filling the screen completely, but scale it in that way, that one dimension is matching the screen size.
ScaleX= screen height / video height
ScaleY= screen width / video width
ScaleVideo = min(ScaleX, ScaleY)
So the picture will be scaled to the max...