mirror of https://git.ffmpeg.org/ffmpeg.git
vf_pixdesctest: make config_props work properly when called multiple times.
This commit is contained in:
parent
3ba35a346c
commit
16a645adeb
|
@ -46,6 +46,7 @@ static int config_props(AVFilterLink *inlink)
|
|||
|
||||
priv->pix_desc = av_pix_fmt_desc_get(inlink->format);
|
||||
|
||||
av_freep(&priv->line);
|
||||
if (!(priv->line = av_malloc(sizeof(*priv->line) * inlink->w)))
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
|
|
Loading…
Reference in New Issue