Interpretation of ffmpeg source code, the second station---AVDictionary

1. AVDictionary dictionary

     定义:    struct AVDictionary {int count;AVDictionaryEntry *elems;};

                     typedef struct AVDictionaryEntry {
                              char *key;
                              char *value;
                   } AVDictionaryEntry;

Parameter flags:

          AV_DICT_DONT_STRDUP_KEY does not copy the key value key

         AV_DICT_DONT_STRDUP_VAL does not copy value.

If AV_DICT_DONT_STRDUP_KEY and AV_DICT_DONT_STRDUP_VAL are not present, av_strdup(key/value) will be used.

2.av_dict_get: get a dictionary entry matching value

3. Function av_dict_set: dictionary setting function, specify the key, and set the corresponding key value in the dictionary, if *pm==NULL, assign an AVDictionary

         声明:int av_dict_set(AVDictionary **pm, const char *key, const char *value,int flags);

4.av_dict_free is used to release the memory used by AVDictionary

{{o.name}}
{{m.name}}

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=324032203&siteId=291194637