Preserve the order of video formats.
Simplify code.