From 0d0aa2af65992dc70da5b9389e51fb058cd9e35a Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Thu, 28 Feb 2019 12:36:49 -0800 Subject: [PATCH] fixed old casts in Footage::get_length_in_frames --- project/footage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project/footage.cpp b/project/footage.cpp index b7e7f5a28..d4654410d 100644 --- a/project/footage.cpp +++ b/project/footage.cpp @@ -55,7 +55,9 @@ void Footage::reset() { } long Footage::get_length_in_frames(double frame_rate) { - if (length >= 0) return qFloor(((double) length / (double) AV_TIME_BASE) * frame_rate / speed); + if (length >= 0) { + return qFloor((double(length) / double(AV_TIME_BASE)) * frame_rate / speed); + } return 0; }