avformat/hls: do not iterate to next sequence number if interruption is requested