summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-04-27 22:57:40 +0100
committerCarl Hetherington <cth@carlh.net>2014-04-27 22:57:40 +0100
commit499213ad2d427dbfaf8f2d98e608f9840e3b1a71 (patch)
treeaf33a3f98e59821a3aa8c9a05c919be41631c8cd /src/lib
parentbec7e08e29ee49ac2b98dad2bc0edb4ac98319b2 (diff)
Fix video length thinko.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/image_examiner.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/image_examiner.cc b/src/lib/image_examiner.cc
index 9ceb7b896..3897bbf37 100644
--- a/src/lib/image_examiner.cc
+++ b/src/lib/image_examiner.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2013 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2014 Carl Hetherington <cth@carlh.net>
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
@@ -48,7 +48,7 @@ ImageExaminer::ImageExaminer (shared_ptr<const Film> film, shared_ptr<const Imag
if (content->still ()) {
_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 ());
}
}