mirror of
https://github.com/encounter/rust-ffmpeg.git
synced 2026-07-10 21:18:39 -07:00
fix(format/stream): adjust for removed stream codec, removed in 5.0
This commit is contained in:
@@ -31,6 +31,7 @@ impl<'a> Stream<'a> {
|
||||
unsafe { (*self.as_ptr()).id }
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "ffmpeg_5_0"))]
|
||||
pub fn codec(&self) -> codec::Context {
|
||||
unsafe { codec::Context::wrap((*self.as_ptr()).codec, Some(self.context.destructor())) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user