pub unsafe extern "C" fn av_dict_set(
pm: *mut *mut AVDictionary,
key: *const i8,
value: *const i8,
flags: i32,
) -> i32
Expand description
Set the given entry in *pm, overwriting an existing entry.
Note: If AV_DICT_DONT_STRDUP_KEY or AV_DICT_DONT_STRDUP_VAL is set, these arguments will be freed on error.
@warning Adding a new entry to a dictionary invalidates all existing entries previously returned with av_dict_get() or av_dict_iterate().
@param pm Pointer to a pointer to a dictionary struct. If *pm is NULL a dictionary struct is allocated and put in *pm. @param key Entry key to add to *pm (will either be av_strduped or added as a new key depending on flags) @param value Entry value to add to *pm (will be av_strduped or added as a new key depending on flags). Passing a NULL value will cause an existing entry to be deleted.
@return >= 0 on success otherwise an error code <0