mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-13 19:05:37 +00:00
Merge commit 'ac84c1ce24'
* commit 'ac84c1ce24':
avfilter: check filter link validity
Conflicts:
libavfilter/avfilter.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
1945db1f13
1 changed files with 5 additions and 0 deletions
|
|
@ -227,6 +227,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…
Add table
Add a link
Reference in a new issue