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:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-18 02:07:30 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-06-18 02:07:30 +0400
commiteb0fc73dcc85268f43fe6978342acf8eb90f72fe (patch)
tree62415610bbbdc607b6e11a32146b023803437f29 /libavfilter/vf_spp.c
parentf31fd067130fff94e652808509fe594c2d82361f (diff)
avfilter/vf_spp: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_spp.c')
-rw-r--r--libavfilter/vf_spp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_spp.c b/libavfilter/vf_spp.c
index 683e333db4..ba0104bd33 100644
--- a/libavfilter/vf_spp.c
+++ b/libavfilter/vf_spp.c
@@ -270,8 +270,8 @@ static int config_input(AVFilterLink *inlink)
spp->hsub = desc->log2_chroma_w;
spp->vsub = desc->log2_chroma_h;
spp->temp_linesize = FFALIGN(inlink->w + 16, 16);
- spp->temp = av_malloc(spp->temp_linesize * h * sizeof(*spp->temp));
- spp->src = av_malloc(spp->temp_linesize * h * sizeof(*spp->src));
+ spp->temp = av_malloc_array(spp->temp_linesize, h * sizeof(*spp->temp));
+ spp->src = av_malloc_array(spp->temp_linesize, h * sizeof(*spp->src));
if (!spp->use_bframe_qp) {
/* we are assuming here the qp blocks will not be smaller that 16x16 */
spp->non_b_qp_alloc_size = FF_CEIL_RSHIFT(inlink->w, 4) * FF_CEIL_RSHIFT(inlink->h, 4);