Make sure that video frames are flushed at EOF.