[FFmpeg-cvslog] avfilter/vf_pixdesctest: use av_malloc_array()
Michael Niedermayer
git at videolan.org
Wed Apr 16 19:52:34 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Apr 16 19:44:23 2014 +0200| [7999b41d480832ee49270acd1c4165ba82164592] | committer: Michael Niedermayer
avfilter/vf_pixdesctest: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7999b41d480832ee49270acd1c4165ba82164592
---
libavfilter/vf_pixdesctest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_pixdesctest.c b/libavfilter/vf_pixdesctest.c
index 54ddf89..bf1ca5d 100644
--- a/libavfilter/vf_pixdesctest.c
+++ b/libavfilter/vf_pixdesctest.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list