On Sat, May 23, 2020 at 04:52:47PM +0200, Nicolas George wrote: > Limin Wang (12020-05-23): > > > In this case, transforming the string into an AVDictionary, passing it > > > around and warning if there are remaining options should be the simplest > > > choice. > > > > So I should to use av_find_info_tag to parse the options string? any > > sample code > > in the existing code for refering? > > What?!? Definitely not. Have you read its doc? It is made for URLs, we > do not have any URL here.
I'm not clear about the char * option usage yet, below is my draft code, am I understand for you correctly? + int ret; + AVDictionary *dict = NULL; + AVDictionaryEntry *format = NULL; + ret = av_dict_parse_string(&dict, options, "=", ":", 0); + if (ret < 0) { + av_dict_free(&dict); + return NULL; + } + format = av_dict_get(dict, "fmt", NULL, 0); + + if (format && !strcmp(format->value, "DOT")) { + av_bprint_init(&buf, 0, AV_BPRINT_SIZE_UNLIMITED); + avfilter_graph2dot_to_buf(&buf, graph); + av_bprint_finalize(&buf, &dump); + } else { > > Regards, > > -- > Nicolas George > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe". -- Thanks, Limin Wang _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".