diff --git a/src/format/stream/stream.rs b/src/format/stream/stream.rs index b298c24..b8c7c74 100644 --- a/src/format/stream/stream.rs +++ b/src/format/stream/stream.rs @@ -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())) } }