prevents "black" frames at the beginning/end of the movie