rational: fixed otio code

This commit is contained in:
itsmattkc
2022-05-02 12:37:29 -07:00
parent ac1c4733ac
commit a34fb2145d
+1 -1
View File
@@ -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