History

Make parse_inputs() return AVERROR(EINVAL) rather than -1 in case the link label parsed by parse_link_name() is invalid.

Originally committed as revision 25696 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 16 years ago

Commit 42e7f6d1 parent fbd97181 file · +1 −1Browse files

Unified · Split

libavfilter/graphparser.c+1−1
@@ -249,7 +249,7 @@ static int parse_inputs(const char **buf, AVFilterInOut **curr_inputs, · 248 unmodified lines
249249 AVFilterInOut *match;
250250
251251 if (!name)
252− return -1;
252+ return AVERROR(EINVAL);
253253
254254 /* First check if the label is not in the open_outputs list */
255255 match = extract_inout(name, open_outputs);

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