Commit 9ecb8587 authored by Luca Barbato's avatar Luca Barbato Committed by Anton Khirnov

doxy: Format @code blocks so they render properly

@code command reports verbatim everything between it and @endcode.
Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent d9ae1031
...@@ -40,21 +40,21 @@ ...@@ -40,21 +40,21 @@
* entries and finally av_dict_free() to free the dictionary * entries and finally av_dict_free() to free the dictionary
* and all its contents. * and all its contents.
* *
* @code @code
* AVDictionary *d = NULL; // "create" an empty dictionary AVDictionary *d = NULL; // "create" an empty dictionary
* av_dict_set(&d, "foo", "bar", 0); // add an entry AVDictionaryEntry *t = NULL;
*
* char *k = av_strdup("key"); // if your strings are already allocated, av_dict_set(&d, "foo", "bar", 0); // add an entry
* char *v = av_strdup("value"); // you can avoid copying them like this
* av_dict_set(&d, k, v, AV_DICT_DONT_STRDUP_KEY | AV_DICT_DONT_STRDUP_VAL); char *k = av_strdup("key"); // if your strings are already allocated,
* char *v = av_strdup("value"); // you can avoid copying them like this
* AVDictionaryEntry *t = NULL; av_dict_set(&d, k, v, AV_DICT_DONT_STRDUP_KEY | AV_DICT_DONT_STRDUP_VAL);
* while (t = av_dict_get(d, "", t, AV_DICT_IGNORE_SUFFIX)) {
* <....> // iterate over all entries in d while (t = av_dict_get(d, "", t, AV_DICT_IGNORE_SUFFIX)) {
* } <....> // iterate over all entries in d
* }
* av_dict_free(&d); av_dict_free(&d);
* @endcode @endcode
* *
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment