diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-16 19:44:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-16 19:44:23 +0200 |
commit | 7999b41d480832ee49270acd1c4165ba82164592 (patch) | |
tree | 0e08b621c0e96050c3a5398d5d3e0d0f1c9c3e39 /libavfilter | |
parent | dd77f6469a898a5c00e2b9b3ff8093db05006ce9 (diff) | |
download | ffmpeg-streaming-7999b41d480832ee49270acd1c4165ba82164592.zip ffmpeg-streaming-7999b41d480832ee49270acd1c4165ba82164592.tar.gz |
avfilter/vf_pixdesctest: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_pixdesctest.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |