X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcontent.h;h=fc3a531faf8293b69d484581810b0ea3fd351801;hb=1b1bc528ee5ca1fee1bd33f9fb6f79cd551e3b33;hp=78a41e306010cf38828e0090151b81065ef263e7;hpb=6d8bcba724be622739a749064466901486304cee;p=dcpomatic.git diff --git a/src/lib/content.h b/src/lib/content.h index 78a41e306..fc3a531fa 100644 --- a/src/lib/content.h +++ b/src/lib/content.h @@ -27,6 +27,7 @@ #include #include #include "types.h" +#include "dcpomatic_time.h" namespace cxml { class Node; @@ -120,7 +121,7 @@ public: } DCPTime end () const { - return position() + length_after_trim() - 1; + return position() + length_after_trim(); } DCPTime length_after_trim () const;