What is a adlib?

It normally deals with spontaneity during speech, for example an actor will tend to ad lib when forgetting his or her lines as a space filler to keep the show goin without an akward pause.