aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-17 14:57:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-17 14:57:40 +0200
commit1eda312aca278c81fea9f0f67413b3ee9f386b4a (patch)
tree513723b74639e4ae4c3e6c6e7f6bbea6b9212ae7 /cmdutils.c
parent7dba57d1fa6b21e88f9539e1e02a07dd07899cda (diff)
parent47e3e1097e09da7f973908e09df15e3bb7c5e1f4 (diff)
downloadffmpeg-1eda312aca278c81fea9f0f67413b3ee9f386b4a.tar.gz
Merge commit '47e3e1097e09da7f973908e09df15e3bb7c5e1f4'
* commit '47e3e1097e09da7f973908e09df15e3bb7c5e1f4': cmdutils: Use the correct guard Conflicts: cmdutils.c See: 35daf3ca8173f80f200860e06a410ced31a8b360 Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 8bcc7ac913..7353dd50c5 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -444,7 +444,7 @@ int locate_option(int argc, char **argv, const OptionDef *options,
(po->name && !strcmp(optname, po->name)))
return i;
- if (po->flags & HAS_ARG)
+ if (!po->name || po->flags & HAS_ARG)
i++;
}
return 0;