aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_pp7.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-10 16:03:46 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-10 16:19:16 +0100
commit1673436d85d6caf7090e543d586adef03efa57f6 (patch)
treea7d186c06fa6fa3ae461dad20aa1c9a2ee44cfee /libavfilter/vf_pp7.c
parent241f858cf4c3dd79fea3ccde2223fbe6fd738071 (diff)
downloadffmpeg-1673436d85d6caf7090e543d586adef03efa57f6.tar.gz
avfilter/vf_pp7: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_pp7.c')
-rw-r--r--libavfilter/vf_pp7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_pp7.c b/libavfilter/vf_pp7.c
index bb590a2465..ac0c117a2f 100644
--- a/libavfilter/vf_pp7.c
+++ b/libavfilter/vf_pp7.c
@@ -295,7 +295,7 @@ static int config_input(AVFilterLink *inlink)
pp7->vsub = desc->log2_chroma_h;
pp7->temp_stride = FFALIGN(inlink->w + 16, 16);
- pp7->src = av_malloc(pp7->temp_stride * (h + 8) * sizeof(uint8_t));
+ pp7->src = av_malloc_array(pp7->temp_stride, (h + 8) * sizeof(uint8_t));
if (!pp7->src)
return AVERROR(ENOMEM);