avconv: fix off by one check in complex_filter

nb_input_files is already an invalid index.
This commit is contained in:
Luca Barbato 2012-04-22 16:37:54 -07:00
parent 269cb6751b
commit 1381081cdb
1 changed files with 1 additions and 1 deletions

View File

@ -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);