aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-11 15:32:27 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-11 15:32:27 +0200
commitc9d64abedfc2f69968d48da89aea9e1184a128d5 (patch)
tree77b0028f372a7779992873cb4777985b27af90e7
parentbe55518fdbdf8579ea91be1fb1db08a5a7028206 (diff)
downloadffmpeg-c9d64abedfc2f69968d48da89aea9e1184a128d5.tar.gz
avfilter/vf_decimate: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/vf_decimate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_decimate.c b/libavfilter/vf_decimate.c
index 5efafe9f77..ffb9320c14 100644
--- a/libavfilter/vf_decimate.c
+++ b/libavfilter/vf_decimate.c
@@ -246,7 +246,7 @@ static int config_input(AVFilterLink *inlink)
dm->nxblocks = (w + dm->blockx/2 - 1) / (dm->blockx/2);
dm->nyblocks = (h + dm->blocky/2 - 1) / (dm->blocky/2);
dm->bdiffsize = dm->nxblocks * dm->nyblocks;
- dm->bdiffs = av_malloc(dm->bdiffsize * sizeof(*dm->bdiffs));
+ dm->bdiffs = av_malloc_array(dm->bdiffsize, sizeof(*dm->bdiffs));
dm->queue = av_calloc(dm->cycle, sizeof(*dm->queue));
if (!dm->bdiffs || !dm->queue)