fixed old casts in Footage::get_length_in_frames

This commit is contained in:
itsmattkc
2019-02-28 12:36:49 -08:00
parent cab3c93004
commit 0d0aa2af65
+3 -1
View File
@@ -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;
}