Commit 87c31cfd authored by Anton Khirnov's avatar Anton Khirnov

vf_gradfun: make config_props work properly when called multiple times.

parent b06848f4
......@@ -166,6 +166,7 @@ static int config_input(AVFilterLink *inlink)
int hsub = desc->log2_chroma_w;
int vsub = desc->log2_chroma_h;
av_freep(&s->buf);
s->buf = av_mallocz((FFALIGN(inlink->w, 16) * (s->radius + 1) / 2 + 32) * sizeof(uint16_t));
if (!s->buf)
return AVERROR(ENOMEM);
......
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