format/stream: rename frame_rate to rate
This commit is contained in:
parent
14c7586030
commit
7161b02eba
@ -73,7 +73,7 @@ impl<'a> Stream<'a> {
|
|||||||
SideDataIter::new(self)
|
SideDataIter::new(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn frame_rate(&self) -> Rational {
|
pub fn rate(&self) -> Rational {
|
||||||
unsafe {
|
unsafe {
|
||||||
Rational::from(av_stream_get_r_frame_rate(self.as_ptr()))
|
Rational::from(av_stream_get_r_frame_rate(self.as_ptr()))
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ impl<'a> StreamMut<'a> {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_frame_rate<R: Into<Rational>>(&mut self, value: R) -> &mut Self {
|
pub fn set_rate<R: Into<Rational>>(&mut self, value: R) -> &mut Self {
|
||||||
unsafe {
|
unsafe {
|
||||||
av_stream_set_r_frame_rate(self.as_mut_ptr(), value.into().into());
|
av_stream_set_r_frame_rate(self.as_mut_ptr(), value.into().into());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user