fix(format/stream): adjust for removed stream codec, removed in 5.0

This commit is contained in:
tilpner
2023-05-24 17:22:59 +02:00
committed by Till Höppner
parent 70fae591d3
commit 807a16d1a0
+1
View File
@@ -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())) }
}