aboutsummaryrefslogtreecommitdiffstats
path: root/avconv.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2012-04-22 16:37:54 -0700
committerLuca Barbato <lu_zero@gentoo.org>2012-04-22 17:23:50 -0700
commit1381081cdb5999892d69f2ff010cf9371bfc7978 (patch)
tree6d0ca5e343ca3a612ead39456fe3c848babc9280 /avconv.c
parent269cb6751b3fd2163253f9a8ea0d193121858677 (diff)
downloadffmpeg-1381081cdb5999892d69f2ff010cf9371bfc7978.tar.gz
avconv: fix off by one check in complex_filter
nb_input_files is already an invalid index.
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avconv.c b/avconv.c
index 851d8dd7d8..e441fff855 100644
--- a/avconv.c
+++ b/avconv.c
@@ -725,7 +725,7 @@ static void init_input_filter(FilterGraph *fg, AVFilterInOut *in)
char *p;
int file_idx = strtol(in->name, &p, 0);
- if (file_idx < 0 || file_idx > nb_input_files) {
+ if (file_idx < 0 || file_idx >= nb_input_files) {
av_log(NULL, AV_LOG_FATAL, "Invalid file index %d in filtegraph description %s.\n",
file_idx, fg->graph_desc);
exit_program(1);