Fix crash. Originally committed as revision 25723 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/graphparser.c (1 of 1 file). Show all
Unified · Split
| @@ -294,6 +294,12 @@ static int parse_outputs(const char **buf, AVFilterInOut **curr_inputs, · 293 unmodified lines | |||
| 294 | AVFilterInOut *match; | 294 | AVFilterInOut *match; |
| 295 | 295 | ||
| 296 | AVFilterInOut *input = *curr_inputs; | 296 | AVFilterInOut *input = *curr_inputs; |
| 297 | if (!input) { | ||
| 298 | av_log(log_ctx, AV_LOG_ERROR, | ||
| 299 | "No output pad can be associated to link label '%s'.\n", | ||
| 300 | name); | ||
| 301 | return AVERROR(EINVAL); | ||
| 302 | } | ||
| 297 | *curr_inputs = (*curr_inputs)->next; | 303 | *curr_inputs = (*curr_inputs)->next; |
| 298 | 304 | ||
| 299 | if (!name) | 305 | if (!name) |