Originally committed as revision 13352 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/graphparser.c (1 of 1 file). Show all
Unified · Split
| @@ -241,8 +241,7 @@ static int link_filter_inouts(AVFilterContext *filter, · 240 unmodified lines | ||
| 241 | 241 | |
| 242 | 242 | pad = filter->output_count; |
| 243 | 243 | while(pad--) { |
| 244 | − AVFilterInOut *currlinkn = av_malloc(sizeof(AVFilterInOut)); | |
| 245 | − currlinkn->name = NULL; | |
| 244 | + AVFilterInOut *currlinkn = av_mallocz(sizeof(AVFilterInOut)); | |
| 246 | 245 | currlinkn->type = LinkTypeOut; |
| 247 | 246 | currlinkn->filter = filter; |
| 248 | 247 | currlinkn->pad_idx = pad; |
| @@ -280,11 +279,10 @@ static int parse_inputs(const char **buf, AVFilterInOut **currInputs, · 31 unmodified lines | ||
| 280 | 279 | link_to_add = match; |
| 281 | 280 | } else { |
| 282 | 281 | /* Not in the list, so add it as an input */ |
| 283 | − link_to_add = av_malloc(sizeof(AVFilterInOut)); | |
| 282 | + link_to_add = av_mallocz(sizeof(AVFilterInOut)); | |
| 284 | 283 | |
| 285 | 284 | link_to_add->name = name; |
| 286 | 285 | link_to_add->type = LinkTypeIn; |
| 287 | − link_to_add->filter = NULL; | |
| 288 | 286 | link_to_add->pad_idx = pad; |
| 289 | 287 | } |
| 290 | 288 | |