MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / set_string_dict

Function set_string_dict

libavutil/opt.c:652–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652static int set_string_dict(void *obj, const AVOption *o, const char *val, uint8_t **dst)
653{
654 AVDictionary *options = NULL;
655
656 if (val) {
657 int ret = av_dict_parse_string(&options, val, "=", ":", 0);
658 if (ret < 0) {
659 av_dict_free(&options);
660 return ret;
661 }
662 }
663
664 av_dict_free((AVDictionary **)dst);
665 *dst = (uint8_t *)options;
666
667 return 0;
668}
669
670static int set_string_channel_layout(void *obj, const AVOption *o,
671 const char *val, void *dst)

Callers 2

opt_set_elemFunction · 0.85
av_opt_set_defaults2Function · 0.85

Calls 2

av_dict_parse_stringFunction · 0.85
av_dict_freeFunction · 0.85

Tested by

no test coverage detected