Move video frame rate ('prepared-for') into Content.
[dcpomatic.git] / src / lib / image_decoder.cc
index c3a11ce971f3895aa3b6ccc8407105dff9757151..6c46b9c08597090f0af2497e456afe68ab0fd667 100644 (file)
@@ -35,7 +35,7 @@ using boost::shared_ptr;
 using dcp::Size;
 
 ImageDecoder::ImageDecoder (shared_ptr<const ImageContent> c, shared_ptr<Log> log)
-       : VideoDecoder (c->video, log)
+       : VideoDecoder (c, log)
        , _image_content (c)
        , _video_position (0)
 {
@@ -71,5 +71,5 @@ void
 ImageDecoder::seek (ContentTime time, bool accurate)
 {
        VideoDecoder::seek (time, accurate);
-       _video_position = time.frames_round (_image_content->video->frame_rate ());
+       _video_position = time.frames_round (_image_content->active_video_frame_rate ());
 }