format/stream: rename frame_rate to rate

This commit is contained in:
meh 2015-10-01 20:43:04 +02:00
parent 14c7586030
commit 7161b02eba
2 changed files with 2 additions and 2 deletions

View File

@ -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()))
} }

View File

@ -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());
} }