Skip to content
Snippets Groups Projects
Commit 170355f6 authored by Philippe Gorley's avatar Philippe Gorley
Browse files

rational: convert to int when returning AVRational

Fixes potential warnings, as AVRational only deals with int.

Change-Id: I35d53a1a84b9e7f9709a51a4c8be8873ba4f7094
parent 6d57b0c4
Branches
Tags
No related merge requests found
...@@ -49,7 +49,7 @@ public: ...@@ -49,7 +49,7 @@ public:
// Define conversions to and from AVRational (equivalent) // Define conversions to and from AVRational (equivalent)
rational(AVRational r) : num_(r.num), den_(r.den) {}; 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 // Normal copy constructors and assignment operators
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment