mirror of
https://github.com/encounter/rust-ffmpeg.git
synced 2026-07-10 21:18:39 -07:00
decoder/{audio,video}: add max_bit_rate()
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user