- uint8_t *metadata;
- AVDictionaryEntry *e = NULL;
- AVBPrint meta_buf;
-
- av_bprint_init(&meta_buf, 0, AV_BPRINT_SIZE_UNLIMITED);
- while ((e = av_dict_get(frame_metadata, "", e, AV_DICT_IGNORE_SUFFIX))) {
- av_bprintf(&meta_buf, "%s", e->key);
- av_bprint_chars(&meta_buf, '\0', 1);
- av_bprintf(&meta_buf, "%s", e->value);
- av_bprint_chars(&meta_buf, '\0', 1);