using std::list;
using std::string;
using boost::shared_ptr;
+using namespace dcpomatic;
AtmosMXFContent::AtmosMXFContent (boost::filesystem::path path)
: Content (path)
return true;
} catch (dcp::MXFFileError& e) {
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
}
DCPTime
AtmosMXFContent::full_length (shared_ptr<const Film> film) const
{
- FrameRateChange const frc (active_video_frame_rate(film), film->video_frame_rate());
+ FrameRateChange const frc (film, shared_from_this());
return DCPTime::from_frames (llrint (_length * frc.factor()), film->video_frame_rate());
}
+
+DCPTime
+AtmosMXFContent::approximate_length () const
+{
+ return DCPTime::from_frames (_length, 24);
+}