Commit c1f3a4d1 authored by Michael Niedermayer's avatar Michael Niedermayer

libavfilter/filtfmts: fix argv/argc checks

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f5326dc6
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment