Seek to last frame if a request is made beyond the end of the film.
[dcpomatic.git] / 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 ();