mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
cmdutils: allow ':'-separated modifiers in option names.
This commit is contained in:
parent
e6e6060c9b
commit
d70e512250
@ -141,8 +141,11 @@ void show_help_options(const OptionDef *options, const char *msg, int mask, int
|
||||
}
|
||||
|
||||
static const OptionDef* find_option(const OptionDef *po, const char *name){
|
||||
const char *p = strchr(name, ':');
|
||||
int len = p ? p - name : strlen(name);
|
||||
|
||||
while (po->name != NULL) {
|
||||
if (!strcmp(name, po->name))
|
||||
if (!strncmp(name, po->name, len) && strlen(po->name) == len)
|
||||
break;
|
||||
po++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user