35 return m ? m->
count : 0;
46 if(prev) i= prev - m->
elems + 1;
49 for(; i<m->
count; i++){
95 int len = strlen(oldval) + strlen(value) + 1;
113 const char *key_val_sep,
const char *pairs_sep,
120 if (key && *key && strspn(*buf, key_val_sep)) {
125 if (key && *key && val && *val)
137 const char *key_val_sep,
const char *pairs_sep,
memory handling functions
#define AV_DICT_DONT_OVERWRITE
Don't overwrite existing entries.
int av_dict_count(const AVDictionary *m)
Get number of entries in dictionary.
AVDictionaryEntry * av_dict_get(AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
Get a dictionary entry with matching key.
#define AV_DICT_DONT_STRDUP_KEY
Take ownership of a key that's been allocated with av_malloc() and children.
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
void av_dict_copy(AVDictionary **dst, AVDictionary *src, int flags)
Copy entries from one AVDictionary struct into another.
#define AV_DICT_MATCH_CASE
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
void av_dict_free(AVDictionary **pm)
Free all the memory allocated for an AVDictionary struct and all keys and values. ...
char * av_get_token(const char **buf, const char *term)
Unescape the given string until a non escaped terminating char, and return the token corresponding to...
common internal API header
AVDictionaryEntry * elems
#define AV_DICT_DONT_STRDUP_VAL
Take ownership of a value that's been allocated with av_malloc() and chilren.
#define AV_DICT_APPEND
If the entry already exists, append to it.
int av_dict_parse_string(AVDictionary **pm, const char *str, const char *key_val_sep, const char *pairs_sep, int flags)
Parse the key/value pairs list and add to a dictionary.
char * av_strdup(const char *s)
Duplicate the string s.
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
size_t av_strlcat(char *dst, const char *src, size_t size)
Append the string src to the string dst, but to a total length of no more than size - 1 bytes...
static int av_toupper(int c)
Locale-independent conversion of ASCII characters to uppercase.
void * av_realloc(void *ptr, size_t size)
Allocate or reallocate a block of memory.
#define AV_DICT_IGNORE_SUFFIX
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
static int parse_key_value_pair(AVDictionary **pm, const char **buf, const char *key_val_sep, const char *pairs_sep, int flags)