consider all aspect ratio changes when looking for the next change

When determining the dominant aspect ratio we must consider the next
mark of *any* aspect ratio instead of the next mark of the *same*
aspect ratio.

The last segment is ignored as of now.
consider the last segment when determining the aspect ratio

Use the very last mark of the recording (likely a key frame) instead
of the beginning of the segment when it is the last aspect ratio mark.