diff --git a/src/format/mod.rs b/src/format/mod.rs index 77d3011..14f414f 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -1,6 +1,8 @@ pub use ::util::sample_format::SampleFormat as Sample; pub use ::util::pixel_format::PixelFormat as Pixel; +pub mod network; + use std::ffi::CStr; use std::str::from_utf8_unchecked; diff --git a/src/format/network.rs b/src/format/network.rs new file mode 100644 index 0000000..da744eb --- /dev/null +++ b/src/format/network.rs @@ -0,0 +1,13 @@ +use ffi::*; + +pub fn init() { + unsafe { + avformat_network_init(); + } +} + +pub fn deinit() { + unsafe { + avformat_network_deinit(); + } +}