History

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

Stefano Sabatini committed 16 years ago

Commit 668673f1 parent cb4fe491 file · +6 −0Browse files

Showing the changes to libavfilter/graphparser.c (1 of 1 file). Show all

Unified · Split

libavfilter/graphparser.c+6−0
@@ -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)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t