mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 19:59:46 +00:00
vf_gradfun: make config_props work properly when called multiple times.
This commit is contained in:
parent
b06848f4de
commit
87c31cfd7a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user