Fixes #11141, a frame numbering mismatch in the commflagger.

The mismatch is between the frame numbering for seeking and the frame
numbering for the video display.  Also, optimize the "seek to next
frame" case.

This only affects the "experimental" commflagger.