summaryrefslogtreecommitdiff
path: root/libavfilter/vf_sab.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-18 00:07:12 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-18 00:07:12 +0200
commitf31fd067130fff94e652808509fe594c2d82361f (patch)
treef636cc93e8718de941088f261be31f6d4cee2077 /libavfilter/vf_sab.c
parentf9cd317223cb2c7be41c1c0ae2fdc31976247547 (diff)
vf_sab: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_sab.c')
-rw-r--r--libavfilter/vf_sab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_sab.c b/libavfilter/vf_sab.c
index 51bbc5aed9..aa38b533fe 100644
--- a/libavfilter/vf_sab.c
+++ b/libavfilter/vf_sab.c
@@ -180,7 +180,7 @@ static int open_filter_param(FilterParam *f, int width, int height, unsigned int
vec = sws_getGaussianVec(f->radius, f->quality);
f->dist_width = vec->length;
f->dist_linesize = FFALIGN(vec->length, 8);
- f->dist_coeff = av_malloc(f->dist_width * f->dist_linesize * sizeof(*f->dist_coeff));
+ f->dist_coeff = av_malloc_array(f->dist_width, f->dist_linesize * sizeof(*f->dist_coeff));
if (!f->dist_coeff) {
sws_freeVec(vec);
return AVERROR(ENOMEM);