format::context::Context: add .bit_rate() method
This commit is contained in:
parent
c5525851d4
commit
4109fa5686
@ -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 }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user