*: make internal pointer handling safer

This commit is contained in:
meh
2015-06-04 03:03:19 +02:00
parent b2c9dc3747
commit ff1b880be6
28 changed files with 683 additions and 466 deletions

View File

@ -1,5 +1,5 @@
pub use ::util::format::Sample;
pub use ::util::format::Pixel;
pub use ::util::format::{sample, Sample};
pub use ::util::format::{pixel, Pixel};
pub mod stream;
@ -26,11 +26,11 @@ pub fn register_all() {
pub fn register(format: &Format) {
match format {
&Format::Input(ref format) => unsafe {
av_register_input_format(format.ptr);
av_register_input_format(format.as_ptr());
},
&Format::Output(ref format) => unsafe {
av_register_output_format(format.ptr);
av_register_output_format(format.as_ptr());
}
}
}