decoder/{audio,video}: add max_bit_rate()

This commit is contained in:
lummax 2015-09-18 20:50:23 +02:00 committed by meh
parent de8585b24d
commit cc054229cf
2 changed files with 7 additions and 1 deletions

View File

@ -82,7 +82,7 @@ impl Audio {
}
}
pub fn max_rate(&self) -> usize {
pub fn max_bit_rate(&self) -> usize {
unsafe {
(*self.as_ptr()).rc_max_rate as usize
}

View File

@ -128,6 +128,12 @@ impl Video {
(*self.as_ptr()).intra_dc_precision as u8
}
}
pub fn max_bit_rate(&self) -> usize {
unsafe {
(*self.as_ptr()).rc_max_rate as usize
}
}
}
impl Deref for Video {