The currently queued frames must be flushed before either a progressive key frame or before the first field of an interlaced key frame. The first field may also be the bottom field even though that is rare.