Fixed problem reading the very last frame of a video.