format::context::Context: add .bit_rate() method

This commit is contained in:
Zhiming Wang 2018-09-17 01:18:48 -04:00
parent c5525851d4
commit 4109fa5686
No known key found for this signature in database
GPG Key ID: 5B58F95EC95965D8

View File

@ -70,6 +70,10 @@ impl Context {
StreamIterMut::new(self)
}
pub fn bit_rate(&self) -> i64 {
unsafe { (*self.as_ptr()).bit_rate }
}
pub fn duration(&self) -> i64 {
unsafe { (*self.as_ptr()).duration }
}