Browse Source

Merge commit 'a7e79f6a43bdc7e3b164dd78b060f0d5575a0cf0' into release/2.4

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

Conflicts:
	libavfilter/avfilter.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4.7
Michael Niedermayer 11 years ago
parent
commit
fefb152cd9
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavfilter/avfilter.c

+ 5
- 0
libavfilter/avfilter.c View File

@@ -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;


Loading…
Cancel
Save