Do not round aspect ratio when one of its values exceed 255.

- Use the same limit everywhere for consistency.
- Add one missing cast to avoid possible overflow.

I have this guy whining that aspect ratio for his files is rounded... So here we are. What do you think about it?