diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-04-22 16:37:54 -0700 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-04-22 17:23:50 -0700 |
commit | 1381081cdb5999892d69f2ff010cf9371bfc7978 (patch) | |
tree | 6d0ca5e343ca3a612ead39456fe3c848babc9280 | |
parent | 269cb6751b3fd2163253f9a8ea0d193121858677 (diff) | |
download | ffmpeg-1381081cdb5999892d69f2ff010cf9371bfc7978.tar.gz |
avconv: fix off by one check in complex_filter
nb_input_files is already an invalid index.
-rw-r--r-- | avconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |