mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
rational: convert to int when returning AVRational
Fixes potential warnings, as AVRational only deals with int. Change-Id: I35d53a1a84b9e7f9709a51a4c8be8873ba4f7094
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user