avfilter: don't av_malloc(0).

pull/2/head
Ronald S. Bultje 14 years ago
parent 25588d3b8a
commit f8af93ab99
  1. 1
      libavfilter/avfilter.c

@ -587,6 +587,7 @@ int avfilter_open(AVFilterContext **filter_ctx, AVFilter *filter, const char *in
ret->av_class = &avfilter_class;
ret->filter = filter;
ret->name = inst_name ? av_strdup(inst_name) : NULL;
if (filter->priv_size)
ret->priv = av_mallocz(filter->priv_size);
ret->input_count = pad_count(filter->inputs);

Loading…
Cancel
Save