Originally committed as revision 25697 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/graphparser.c (1 of 1 file). Show all
Unified · Split
| @@ -258,7 +258,8 @@ static int parse_inputs(const char **buf, AVFilterInOut **curr_inputs, · 257 unmodified lines | ||
| 258 | 258 | av_free(name); |
| 259 | 259 | } else { |
| 260 | 260 | /* Not in the list, so add it as an input */ |
| 261 | − match = av_mallocz(sizeof(AVFilterInOut)); | |
| 261 | + if (!(match = av_mallocz(sizeof(AVFilterInOut)))) | |
| 262 | + return AVERROR(ENOMEM); | |
| 262 | 263 | match->name = name; |
| 263 | 264 | match->pad_idx = pad; |
| 264 | 265 | } |