| 763 | } |
| 764 | |
| 765 | void 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 | |
| 790 | int split_commandline(OptionParseContext *octx, int argc, char *argv[], |
| 791 | const OptionDef *options, |
no test coverage detected