mirror of https://git.ffmpeg.org/ffmpeg.git
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
This commit is contained in:
parent
cb4fe49294
commit
668673f10c
|
@ -294,6 +294,12 @@ static int parse_outputs(const char **buf, AVFilterInOut **curr_inputs,
|
||||||
AVFilterInOut *match;
|
AVFilterInOut *match;
|
||||||
|
|
||||||
AVFilterInOut *input = *curr_inputs;
|
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;
|
*curr_inputs = (*curr_inputs)->next;
|
||||||
|
|
||||||
if (!name)
|
if (!name)
|
||||||
|
|
Loading…
Reference in New Issue