X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fimage_examiner.cc;h=004b89e659d47ebd24cb594bc06848d2651585d4;hb=c6c082c4a8016f85ba4207f4b8ccee1d5770e4a4;hp=9ceb7b896515da1f983503d7aa2f0663319ef57a;hpb=23734f3e7293f685e0ade7ed27a669031b269c47;p=dcpomatic.git diff --git a/src/lib/image_examiner.cc b/src/lib/image_examiner.cc index 9ceb7b896..004b89e65 100644 --- a/src/lib/image_examiner.cc +++ b/src/lib/image_examiner.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2013 Carl Hetherington + Copyright (C) 2013-2014 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,7 +18,6 @@ */ #include -#include #include #include "image_content.h" #include "image_examiner.h" @@ -33,8 +32,6 @@ using std::cout; using std::list; using std::sort; using boost::shared_ptr; -using boost::lexical_cast; -using boost::bad_lexical_cast; ImageExaminer::ImageExaminer (shared_ptr film, shared_ptr content, shared_ptr) : _film (film) @@ -48,7 +45,7 @@ ImageExaminer::ImageExaminer (shared_ptr film, shared_ptrstill ()) { _video_length = ContentTime::from_seconds (Config::instance()->default_still_length()); } else { - _video_length = ContentTime (double (_image_content->number_of_paths ()) / video_frame_rate ()); + _video_length = ContentTime::from_frames (_image_content->number_of_paths (), video_frame_rate ()); } }