rational: convert to int when returning AVRational

Fixes potential warnings, as AVRational only deals with int.

Change-Id: I35d53a1a84b9e7f9709a51a4c8be8873ba4f7094
This commit is contained in:
philippegorley
2018-08-06 13:17:56 -04:00
parent 6d57b0c40b
commit 170355f6af

View File

@ -49,7 +49,7 @@ public:
// Define conversions to and from AVRational (equivalent)
rational(AVRational r) : num_(r.num), den_(r.den) {};
operator AVRational() const { return AVRational{num_, den_}; }
operator AVRational() const { return AVRational{(int)num_, (int)den_}; }
// Normal copy constructors and assignment operators