X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fvideo_mxf_decoder.cc;h=488f837784b4bb57c12bf5d01255e32f7e5030ee;hb=1a7c50245309bb0b99001940b2203a267de942ca;hp=3c4002ca2b6d9acbbe20079627ebd5f3f39f0c94;hpb=84012cdd64f451891febd36154b7226ea21a899b;p=dcpomatic.git diff --git a/src/lib/video_mxf_decoder.cc b/src/lib/video_mxf_decoder.cc index 3c4002ca2..488f83778 100644 --- a/src/lib/video_mxf_decoder.cc +++ b/src/lib/video_mxf_decoder.cc @@ -22,6 +22,7 @@ #include "video_decoder.h" #include "video_mxf_content.h" #include "j2k_image_proxy.h" +#include "frame_interval_checker.h" #include #include #include @@ -30,6 +31,7 @@ using boost::shared_ptr; using boost::optional; +using namespace dcpomatic; VideoMXFDecoder::VideoMXFDecoder (shared_ptr film, shared_ptr content) : Decoder (film) @@ -42,7 +44,7 @@ VideoMXFDecoder::VideoMXFDecoder (shared_ptr film, shared_ptrpath(0))); } catch (dcp::MXFFileError& e) { /* maybe it's stereo */ - } catch (dcp::DCPReadError& e) { + } catch (dcp::ReadError& e) { /* maybe it's stereo */ } @@ -53,7 +55,7 @@ VideoMXFDecoder::VideoMXFDecoder (shared_ptr film, shared_ptractive_video_frame_rate (film()); int64_t const frame = _next.frames_round (vfr); - if (frame >= _content->video->length()) { return true; }