rsmpeg 0.3.0

A Rust crate that exposes FFmpeg's power as much as possible.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::ffi;

pub fn av_get_channel_layout_nb_channels(channel_layout: u64) -> i32 {
    unsafe { ffi::av_get_channel_layout_nb_channels(channel_layout) }
}

pub fn av_get_default_channel_layout(nb_channels: i32) -> u64 {
    // From i64 to u64, safe.
    unsafe { ffi::av_get_default_channel_layout(nb_channels) as u64 }
}