mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
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
This commit is contained in:
@@ -249,7 +249,7 @@ static int parse_inputs(const char **buf, AVFilterInOut **curr_inputs,
|
||||
AVFilterInOut *match;
|
||||
|
||||
if (!name)
|
||||
return -1;
|
||||
return AVERROR(EINVAL);
|
||||
|
||||
/* First check if the label is not in the open_outputs list */
|
||||
match = extract_inout(name, open_outputs);
|
||||
|
||||
Reference in New Issue
Block a user