Add appearance dialog for SubRip subtitles.
[dcpomatic.git] / src / lib / image_decoder.cc
index 3d543eaf28562572a8ee3f0ce29d50cd3b921ec6..2291daecd7996f85e00ad9bdc7d6cc9a96e8be90 100644 (file)
@@ -43,7 +43,7 @@ ImageDecoder::ImageDecoder (shared_ptr<const ImageContent> c)
 }
 
 bool
-ImageDecoder::pass ()
+ImageDecoder::pass (PassReason, bool)
 {
        if (_video_position >= _image_content->video_length()) {
                return true;
@@ -71,5 +71,5 @@ void
 ImageDecoder::seek (ContentTime time, bool accurate)
 {
        VideoDecoder::seek (time, accurate);
-       _video_position = time.frames (_image_content->video_frame_rate ());
+       _video_position = time.frames_round (_image_content->video_frame_rate ());
 }