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

Function uninit_parse_context

fftools/cmdutils.c:765–788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763}
764
765void uninit_parse_context(OptionParseContext *octx)
766{
767 int i, j;
768
769 for (i = 0; i < octx->nb_groups; i++) {
770 OptionGroupList *l = &octx->groups[i];
771
772 for (j = 0; j < l->nb_groups; j++) {
773 av_freep(&l->groups[j].opts);
774 av_dict_free(&l->groups[j].codec_opts);
775 av_dict_free(&l->groups[j].format_opts);
776
777 av_dict_free(&l->groups[j].sws_dict);
778 av_dict_free(&l->groups[j].swr_opts);
779 }
780 av_freep(&l->groups);
781 }
782 av_freep(&octx->groups);
783
784 av_freep(&octx->cur_group.opts);
785 av_freep(&octx->global_opts.opts);
786
787 uninit_opts();
788}
789
790int split_commandline(OptionParseContext *octx, int argc, char *argv[],
791 const OptionDef *options,

Callers 1

ffmpeg_parse_optionsFunction · 0.85

Calls 3

av_freepFunction · 0.85
av_dict_freeFunction · 0.85
uninit_optsFunction · 0.85

Tested by

no test coverage detected