Function rsmpeg::ffi::av_set_options_string[][src]

pub unsafe extern "C" fn av_set_options_string(
    ctx: *mut c_void,
    opts: *const i8,
    key_val_sep: *const i8,
    pairs_sep: *const i8
) -> i32
Expand description

Parse the key/value pairs list in opts. For each key/value pair found, stores the value in the field in ctx that is named like the key. ctx must be an AVClass context, storing is done using AVOptions.

@param opts options string to parse, may be NULL @param key_val_sep a 0-terminated list of characters used to separate key from value @param pairs_sep a 0-terminated list of characters used to separate two pairs from each other @return the number of successfully set key/value pairs, or a negative value corresponding to an AVERROR code in case of error: AVERROR(EINVAL) if opts cannot be parsed, the error code issued by av_opt_set() if a key/value pair cannot be set