On Thu, Oct 23, 2014 at 11:31 AM, Luca Barbato <[email protected]> wrote: > On 20/10/14 15:11, Vittorio Giovara wrote: >> CC: [email protected] >> Bug-Id: CID 700371 >> --- >> Addressed Anton's suggestion. >> Vittorio >> >> libavfilter/avfilter.c | 7 ++++++- >> 1 file changed, 6 insertions(+), 1 deletion(-) >> >> diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c >> index c9617dc..4098973 100644 >> --- a/libavfilter/avfilter.c >> +++ b/libavfilter/avfilter.c >> @@ -152,6 +152,11 @@ int avfilter_config_links(AVFilterContext *filter) >> AVFilterLink *link = filter->inputs[i]; >> >> 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); > > What is "i" ?
It's the number of the filter whose i/o pads are not linked. >> + return AVERROR(EINVAL); >> + } > > The patch itself is ok. > > lu > > _______________________________________________ > libav-devel mailing list > [email protected] > https://lists.libav.org/mailman/listinfo/libav-devel -- Vittorio _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
