From 499213ad2d427dbfaf8f2d98e608f9840e3b1a71 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 27 Apr 2014 22:57:40 +0100 Subject: Fix video length thinko. --- src/lib/image_examiner.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') 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 + 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 @@ -48,7 +48,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 ()); } } -- cgit v1.2.3