Commit 23a6e474 authored by Nicolas George's avatar Nicolas George

ffmpeg: fix validity test for file index.

Also fix a typo in the next line.
parent 605f2b6b
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment