Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-01-21 14:28:13 +0300
committerPaul B Mahol <onemda@gmail.com>2021-01-21 15:37:47 +0300
commit27f1ee7f53adf665818d89ce468e7e10bce4c831 (patch)
treeba8f94e1d4b7f24d86d8d2d929f2f4d09609f3fc /libavfilter/vf_fieldmatch.c
parentb43c35c633a4c0c35d914cfc097fe9507a8409e2 (diff)
avfilter/vf_fieldmatch: use av_malloc_array()
Diffstat (limited to 'libavfilter/vf_fieldmatch.c')
-rw-r--r--libavfilter/vf_fieldmatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_fieldmatch.c b/libavfilter/vf_fieldmatch.c
index 57ecf73864..528f943172 100644
--- a/libavfilter/vf_fieldmatch.c
+++ b/libavfilter/vf_fieldmatch.c
@@ -951,8 +951,8 @@ static int config_input(AVFilterLink *inlink)
fm->tpitchuv = FFALIGN(w >> 1, 16);
fm->tbuffer = av_calloc((h/2 + 4) * fm->tpitchy, sizeof(*fm->tbuffer));
- fm->c_array = av_malloc((((w + fm->blockx/2)/fm->blockx)+1) *
- (((h + fm->blocky/2)/fm->blocky)+1) *
+ fm->c_array = av_malloc_array((((w + fm->blockx/2)/fm->blockx)+1) *
+ (((h + fm->blocky/2)/fm->blocky)+1),
4 * sizeof(*fm->c_array));
if (!fm->tbuffer || !fm->c_array)
return AVERROR(ENOMEM);