[FFmpeg-cvslog] avconv: fix off by one check in complex_filter
Luca Barbato
git at videolan.org
Tue Apr 24 02:43:16 CEST 2012
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Sun Apr 22 16:37:54 2012 -0700| [1381081cdb5999892d69f2ff010cf9371bfc7978] | committer: Luca Barbato
avconv: fix off by one check in complex_filter
nb_input_files is already an invalid index.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1381081cdb5999892d69f2ff010cf9371bfc7978
---
avconv.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/avconv.c b/avconv.c
index 851d8dd..e441fff 100644
--- a/avconv.c
+++ b/avconv.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list