I'm fairly sure seek should be in terms of the content's frame rate...
authorCarl Hetherington <cth@carlh.net>
Tue, 9 Jul 2013 22:53:05 +0000 (23:53 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 9 Jul 2013 22:53:05 +0000 (23:53 +0100)
src/lib/player.cc

index 4de691c0bd2d70b4517b720acb319215675c9c48..fd697b522b1762c72fd86d7606182ab424ce9740 100644 (file)
@@ -359,7 +359,7 @@ Player::seek (Time t, bool accurate)
                s = min (vc->length(), s);
 
                FrameRateConversion frc (vc->video_frame_rate(), _film->dcp_video_frame_rate());
-               VideoContent::Frame f = s * _film->dcp_video_frame_rate() / (frc.factor() * TIME_HZ);
+               VideoContent::Frame f = s * vc->video_frame_rate() / (frc.factor() * TIME_HZ);
                dynamic_pointer_cast<VideoDecoder>((*i)->decoder)->seek (f, accurate);
        }