vf_pixdesctest: make config_props work properly when called multiple times.

This commit is contained in:
Anton Khirnov 2013-03-18 21:31:54 +01:00
parent 3ba35a346c
commit 16a645adeb
1 changed files with 1 additions and 0 deletions

View File

@ -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);