mirror of https://git.ffmpeg.org/ffmpeg.git
libavfilter/filtfmts: fix argv/argc checks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f5326dc68e
commit
c1f3a4d1e3
|
@ -78,13 +78,13 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
av_log_set_level(AV_LOG_DEBUG);
|
av_log_set_level(AV_LOG_DEBUG);
|
||||||
|
|
||||||
if (!argv[1]) {
|
if (argc < 2) {
|
||||||
fprintf(stderr, "Missing filter name as argument\n");
|
fprintf(stderr, "Missing filter name as argument\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
filter_name = argv[1];
|
filter_name = argv[1];
|
||||||
if (argv[2])
|
if (argc > 2)
|
||||||
filter_args = argv[2];
|
filter_args = argv[2];
|
||||||
|
|
||||||
avfilter_register_all();
|
avfilter_register_all();
|
||||||
|
|
Loading…
Reference in New Issue