format/network: add network helpers

This commit is contained in:
meh 2015-05-12 03:55:41 +02:00
parent 59e067cb4d
commit 67efc8b686
2 changed files with 15 additions and 0 deletions

View File

@ -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;

13
src/format/network.rs Normal file
View File

@ -0,0 +1,13 @@
use ffi::*;
pub fn init() {
unsafe {
avformat_network_init();
}
}
pub fn deinit() {
unsafe {
avformat_network_deinit();
}
}