diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-20 00:25:41 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-20 00:43:03 +0400 |
commit | c1f3a4d1e317282d33a78ba84560dead629c1c63 (patch) | |
tree | 615cb74e9007dd5e784de5acad8ca9655c76ed60 /libavfilter/filtfmts.c | |
parent | f5326dc68e802495980241ff9c38a635a3926e11 (diff) |
libavfilter/filtfmts: fix argv/argc checks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/filtfmts.c')
-rw-r--r-- | libavfilter/filtfmts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/filtfmts.c b/libavfilter/filtfmts.c index 3a3bde6435..14417cbd4b 100644 --- a/libavfilter/filtfmts.c +++ b/libavfilter/filtfmts.c @@ -78,13 +78,13 @@ int main(int argc, char **argv) av_log_set_level(AV_LOG_DEBUG); - if (!argv[1]) { + if (argc < 2) { fprintf(stderr, "Missing filter name as argument\n"); return 1; } filter_name = argv[1]; - if (argv[2]) + if (argc > 2) filter_args = argv[2]; avfilter_register_all(); |