X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fatmos_mxf_content.cc;h=581b1b2f06c0efe0c13b19da9220356d399fe466;hb=95c48153421b1a6e0d7ca6cf5e67cd7623c03dc7;hp=4835442d5e5f01b3eb973f84ab7e888449d8e9f6;hpb=f67bc45820b4e56f90eecb97ba3b7762c119f9b5;p=dcpomatic.git diff --git a/src/lib/atmos_mxf_content.cc b/src/lib/atmos_mxf_content.cc index 4835442d5..581b1b2f0 100644 --- a/src/lib/atmos_mxf_content.cc +++ b/src/lib/atmos_mxf_content.cc @@ -32,6 +32,7 @@ using std::list; using std::string; using boost::shared_ptr; +using namespace dcpomatic; AtmosMXFContent::AtmosMXFContent (boost::filesystem::path path) : Content (path) @@ -55,7 +56,7 @@ AtmosMXFContent::valid_mxf (boost::filesystem::path path) return true; } catch (dcp::MXFFileError& e) { - } catch (dcp::DCPReadError& e) { + } catch (dcp::ReadError& e) { } @@ -96,3 +97,9 @@ AtmosMXFContent::full_length (shared_ptr film) const 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); +}