mirror of
https://github.com/encounter/rust-ffmpeg-zmwangx.git
synced 2026-07-10 21:18:40 -07:00
format/network: add network helpers
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
use ffi::*;
|
||||
|
||||
pub fn init() {
|
||||
unsafe {
|
||||
avformat_network_init();
|
||||
}
|
||||
}
|
||||
|
||||
pub fn deinit() {
|
||||
unsafe {
|
||||
avformat_network_deinit();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user