Commit 00b3ca3c authored by Stefano Sabatini's avatar Stefano Sabatini

Add missing memory check in parse_inputs(), and fix possible (yet very unlikely) crash.

Originally committed as revision 25697 to svn://
parent 42e7f6d7
......@@ -258,7 +258,8 @@ static int parse_inputs(const char **buf, AVFilterInOut **curr_inputs,
} else {
/* Not in the list, so add it as an input */
match = av_mallocz(sizeof(AVFilterInOut));
if (!(match = av_mallocz(sizeof(AVFilterInOut))))
match->name = name;
match->pad_idx = pad;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment