Fix video aspect ratio calculation

Hello, I ran into an issue where every video with a sample aspect ratio different from 1 were anamorphic.

This is because the calculation of the video resolution was errored in this case.
null !== $width && null !== $height