mxfdec: calculate the index in display order