output last frame if seq end code is encountered