36 return m ? m->
count : 0;
47 if(prev) i= prev - m->
elems + 1;
50 for(; i<m->
count; i++){
53 else for(j=0; toupper(s[j]) == toupper(key[j]) && key[j]; j++);
96 int len = strlen(oldval) + strlen(value) + 1;
#define AV_DICT_MATCH_CASE
memory handling functions
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.
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
#define AV_DICT_DONT_STRDUP_VAL
void av_dict_copy(AVDictionary **dst, AVDictionary *src, int flags)
Copy entries from one AVDictionary struct into another.
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. ...
common internal API header
AVDictionaryEntry * elems
#define AV_DICT_DONT_STRDUP_KEY
char * av_strdup(const char *s)
Duplicate the string s.
#define AV_DICT_IGNORE_SUFFIX
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...
void * av_realloc(void *ptr, size_t size)
Allocate or reallocate a block of memory.
#define AV_DICT_DONT_OVERWRITE
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...