From a34fb2145d2d9d2ce552f86d6a97bb749de8a515 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Mon, 2 May 2022 12:37:29 -0700 Subject: [PATCH] rational: fixed otio code --- app/common/rational.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/rational.cpp b/app/common/rational.cpp index 2efad3f1f..62b93c6cd 100644 --- a/app/common/rational.cpp +++ b/app/common/rational.cpp @@ -89,7 +89,7 @@ opentime::RationalTime rational::toRationalTime(double framerate) const { // Is this the best way of doing this? // Olive can store rationals as 0/0 which causes errors in OTIO - opentime::RationalTime time = opentime::RationalTime(numer_, denom_ == 0 ? 1 : denom_); + opentime::RationalTime time = opentime::RationalTime(r_.num, r_.den == 0 ? 1 : r_.den); return time.rescaled_to(framerate); } #endif