1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-10-30 23:18:11 +02:00

cmdutils: pass number of groups to split_commandline().

This makes the code simpler and avoids mixing designated and
non-designated initializers in a potentially unsafe way in avconv.
This commit is contained in:
Anton Khirnov
2012-12-19 21:53:22 +01:00
parent bb2bab92e7
commit c661cb6672
3 changed files with 14 additions and 16 deletions

View File

@@ -286,7 +286,7 @@ int parse_optgroup(void *optctx, OptionGroup *g);
*/
int split_commandline(OptionParseContext *octx, int argc, char *argv[],
const OptionDef *options,
const OptionGroupDef *groups);
const OptionGroupDef *groups, int nb_groups);
/**
* Free all allocated memory in an OptionParseContext.