I wanted to report this as a bug, but since there is no option for “API bug” and I would like to know why this is, I mention this here first:
Why is frame of type long while frameCount is of type ulong???
Not that it’s too important to be honest, but are negative frameCount values possible?
Skipping to the end of a video clip means casting frameCount to long to be assignable to frame.