You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
vf_pixdesctest: make config_props work properly when called multiple times.
This commit is contained in:
@@ -46,6 +46,7 @@ static int config_props(AVFilterLink *inlink)
|
|||||||
|
|
||||||
priv->pix_desc = av_pix_fmt_desc_get(inlink->format);
|
priv->pix_desc = av_pix_fmt_desc_get(inlink->format);
|
||||||
|
|
||||||
|
av_freep(&priv->line);
|
||||||
if (!(priv->line = av_malloc(sizeof(*priv->line) * inlink->w)))
|
if (!(priv->line = av_malloc(sizeof(*priv->line) * inlink->w)))
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user