diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-04-22 12:11:50 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-04-22 12:45:35 +0200 |
commit | 23a6e4749fa7134ce411ce186062f70f9d348603 (patch) | |
tree | 96b9e51dc6a4248aac41f2b0b66a31364cd63583 | |
parent | 605f2b6b004eee4dc57832257169ff8eaa562fb7 (diff) | |
download | ffmpeg-23a6e4749fa7134ce411ce186062f70f9d348603.tar.gz |
ffmpeg: fix validity test for file index.
Also fix a typo in the next line.
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -862,8 +862,8 @@ 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) { - av_log(NULL, AV_LOG_FATAL, "Invalid file index %d in filtegraph description %s.\n", + if (file_idx < 0 || file_idx >= nb_input_files) { + av_log(NULL, AV_LOG_FATAL, "Invalid file index %d in filtergraph description %s.\n", file_idx, fg->graph_desc); exit_program(1); } |