X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_mxf_content.cc;h=436046890bb9c709497450ac6d1e5de7d070bed0;hb=cfcb0f5d66cc68d8d395480a95d4fe95c63e214e;hp=def58c5ebb3a5a7bc0e69dcccc2df31be1ed82b0;hpb=f67bc45820b4e56f90eecb97ba3b7762c119f9b5;p=dcpomatic.git diff --git a/src/lib/video_mxf_content.cc b/src/lib/video_mxf_content.cc index def58c5eb..436046890 100644 --- a/src/lib/video_mxf_content.cc +++ b/src/lib/video_mxf_content.cc @@ -123,8 +123,15 @@ VideoMXFContent::full_length (shared_ptr film) const return DCPTime::from_frames (llrint (video->length_after_3d_combine() * frc.factor()), film->video_frame_rate()); } +DCPTime +VideoMXFContent::approximate_length () const +{ + return DCPTime::from_frames (video->length_after_3d_combine(), 24); +} + void -VideoMXFContent::add_properties (list& p) const +VideoMXFContent::add_properties (shared_ptr film, list& p) const { + Content::add_properties (film, p); video->add_properties (p); }