[FFmpeg-cvslog] libavfilter/filtfmts: fix argv/argc checks
Michael Niedermayer
git at videolan.org
Wed Sep 19 22:43:49 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Sep 19 22:25:41 2012 +0200| [c1f3a4d1e317282d33a78ba84560dead629c1c63] | committer: Michael Niedermayer
libavfilter/filtfmts: fix argv/argc checks
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c1f3a4d1e317282d33a78ba84560dead629c1c63
---
libavfilter/filtfmts.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/filtfmts.c b/libavfilter/filtfmts.c
index 3a3bde6..14417cb 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();
More information about the ffmpeg-cvslog
mailing list