You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vf_gradfun: make config_props work properly when called multiple times.
This commit is contained in:
@@ -166,6 +166,7 @@ static int config_input(AVFilterLink *inlink)
|
|||||||
int hsub = desc->log2_chroma_w;
|
int hsub = desc->log2_chroma_w;
|
||||||
int vsub = desc->log2_chroma_h;
|
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));
|
s->buf = av_mallocz((FFALIGN(inlink->w, 16) * (s->radius + 1) / 2 + 32) * sizeof(uint16_t));
|
||||||
if (!s->buf)
|
if (!s->buf)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
Reference in New Issue
Block a user