Commit fefb152c authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'a7e79f6a' into release/2.4

* commit 'a7e79f6a':
  avfilter: check filter link validity

Conflicts:
	libavfilter/avfilter.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 275cd55a a7e79f6a
......@@ -230,6 +230,11 @@ int avfilter_config_links(AVFilterContext *filter)
AVFilterLink *inlink;
if (!link) continue;
if (!link->src || !link->dst) {
av_log(filter, AV_LOG_ERROR,
"Not all input and output are properly linked (%d).\n", i);
return AVERROR(EINVAL);
}
inlink = link->src->nb_inputs ? link->src->inputs[0] : NULL;
link->current_pts = AV_NOPTS_VALUE;
......
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