aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-11 22:41:22 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-11 22:41:22 +0000
commit668673f10ce225d26a96f1aeb62066e8c641c85a (patch)
tree3334a540f8d4a09d84083a4da9f8feab4c76fb19
parentcb4fe49294157019c9b8090ac41cd598c4a7f553 (diff)
downloadffmpeg-668673f10ce225d26a96f1aeb62066e8c641c85a.tar.gz
Add missing check on the existence of an associated output pad for
each specified output link label. Fix crash. Originally committed as revision 25723 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavfilter/graphparser.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 4266e8134d..99982b3727 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -294,6 +294,12 @@ static int parse_outputs(const char **buf, AVFilterInOut **curr_inputs,
AVFilterInOut *match;
AVFilterInOut *input = *curr_inputs;
+ if (!input) {
+ av_log(log_ctx, AV_LOG_ERROR,
+ "No output pad can be associated to link label '%s'.\n",
+ name);
+ return AVERROR(EINVAL);
+ }
*curr_inputs = (*curr_inputs)->next;
if (!name)