{Video,Audio}Frame -> Frame.
[dcpomatic.git] / src / lib / video_content.cc
index 9f3d7829163b7e05deeb48e268b27fec3e801e22..db9a2a5e8a6cfb6a39985e43e36e2416decb70ea 100644 (file)
@@ -483,7 +483,7 @@ VideoContent::set_video_frame_rate (float r)
 }
 
 optional<float>
-VideoContent::fade (VideoFrame f) const
+VideoContent::fade (Frame f) const
 {
        DCPOMATIC_ASSERT (f >= 0);
        
@@ -491,7 +491,7 @@ VideoContent::fade (VideoFrame f) const
                return float (f) / _fade_in.frames (video_frame_rate ());
        }
 
-       VideoFrame fade_out_start = ContentTime (video_length() - fade_out()).frames (video_frame_rate ());
+       Frame fade_out_start = ContentTime (video_length() - fade_out()).frames (video_frame_rate ());
        if (f >= fade_out_start) {
                return 1 - float (f - fade_out_start) / fade_out().frames (video_frame_rate ());
        }