Seek to last frame if a request is made beyond the end of the film.
authorCarl Hetherington <cth@carlh.net>
Tue, 14 Apr 2020 22:27:09 +0000 (00:27 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 14 Apr 2020 22:27:09 +0000 (00:27 +0200)
src/wx/film_viewer.cc

index c020a3baf06d1222417673285bb360920952c8e6..bff2df0ffaf0b697b6794127cb64d4fb7688e1c0 100644 (file)
@@ -462,7 +462,7 @@ FilmViewer::seek (DCPTime t, bool accurate)
        }
 
        if (t >= _film->length ()) {
-               t = _film->length ();
+               t = _film->length() - one_video_frame();
        }
 
        suspend ();