We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f433d84 commit 43a3146Copy full SHA for 43a3146
src/avutil/rational.rs
@@ -9,7 +9,7 @@ use crate::ffi::AVRational;
9
///
10
/// @note The return value is not reduced.
11
/// @see av_reduce()
12
-pub fn av_make_q(num: libc::c_int, den: libc::c_int) -> AVRational {
+pub const fn av_make_q(num: libc::c_int, den: libc::c_int) -> AVRational {
13
AVRational { num, den }
14
}
15
@@ -48,7 +48,7 @@ pub fn av_q2d(a: AVRational) -> libc::c_double {
48
/// Invert a rational.
49
/// @param q value
50
/// @return 1 / q
51
-pub fn av_inv_q(q: AVRational) -> AVRational {
+pub const fn av_inv_q(q: AVRational) -> AVRational {
52
AVRational {
53
num: q.den,
54
den: q.num,
0 commit comments