Skip to main content

get_sample_fmt

Function get_sample_fmt 

Source
pub fn get_sample_fmt(name: &CStr) -> Option<AVSampleFormat>
Expand description

Return a sample format corresponding to name, or None on error.

assert_eq!(
    Some(AV_SAMPLE_FMT_FLT),
    get_sample_fmt(&CString::new("flt").unwrap())
);