summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-04-22 12:11:50 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-04-22 12:45:35 +0200
commit23a6e4749fa7134ce411ce186062f70f9d348603 (patch)
tree96b9e51dc6a4248aac41f2b0b66a31364cd63583 /ffmpeg.c
parent605f2b6b004eee4dc57832257169ff8eaa562fb7 (diff)
ffmpeg: fix validity test for file index.
Also fix a typo in the next line.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index f9a9158313..0abed0ce2e 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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);
}