avfilter/vf_pixdesctest: use av_malloc_array()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 16 Apr 2014 17:44:23 +0000 (19:44 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 16 Apr 2014 17:44:23 +0000 (19:44 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_pixdesctest.c

index 54ddf89..bf1ca5d 100644 (file)
@@ -47,7 +47,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)))
+    if (!(priv->line = av_malloc_array(sizeof(*priv->line), inlink->w)))
         return AVERROR(ENOMEM);
 
     return 0;