aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_owdenoise.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-21 03:18:56 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-21 03:18:56 +0200
commit437da3e349c2acbf1ce6f565ef71b51bcf66086e (patch)
treef25fc56c2371ef698ece7e4f9d623b248c0a1a8f /libavfilter/vf_owdenoise.c
parentec59f027ac749f5a10fa7c6243e532bf0bc57f9d (diff)
downloadffmpeg-437da3e349c2acbf1ce6f565ef71b51bcf66086e.tar.gz
avfilter/vf_owdenoise: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_owdenoise.c')
-rw-r--r--libavfilter/vf_owdenoise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_owdenoise.c b/libavfilter/vf_owdenoise.c
index 95ba43be42..5b47f76169 100644
--- a/libavfilter/vf_owdenoise.c
+++ b/libavfilter/vf_owdenoise.c
@@ -293,7 +293,7 @@ static int config_input(AVFilterLink *inlink)
s->linesize = FFALIGN(inlink->w, 16);
for (j = 0; j < 4; j++) {
for (i = 0; i <= s->depth; i++) {
- s->plane[i][j] = av_malloc(s->linesize * h * sizeof(s->plane[0][0][0]));
+ s->plane[i][j] = av_malloc_array(s->linesize, h * sizeof(s->plane[0][0][0]));
if (!s->plane[i][j])
return AVERROR(ENOMEM);
}