[FFmpeg-cvslog] cmdutils: remove unneeded null check
Michael Niedermayer
git at videolan.org
Wed Oct 17 23:30:49 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Oct 17 23:15:19 2012 +0200| [35daf3ca8173f80f200860e06a410ced31a8b360] | committer: Michael Niedermayer
cmdutils: remove unneeded null check
Fixes CID703769
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=35daf3ca8173f80f200860e06a410ced31a8b360
---
cmdutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmdutils.c b/cmdutils.c
index 2312ca2..f4474f6 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -380,7 +380,7 @@ int locate_option(int argc, char **argv, const OptionDef *options,
(po->name && !strcmp(optname, po->name)))
return i;
- if (!po || po->flags & HAS_ARG)
+ if (po->flags & HAS_ARG)
i++;
}
return 0;
More information about the ffmpeg-cvslog
mailing list