1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02: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:
Stefano Sabatini 2010-11-07 18:40:07 +00:00
parent fbd97184f8
commit 42e7f6d781

View File

@ -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);