diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-10 16:03:46 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-10 16:19:16 +0100 |
commit | 1673436d85d6caf7090e543d586adef03efa57f6 (patch) | |
tree | a7d186c06fa6fa3ae461dad20aa1c9a2ee44cfee /libavfilter/vf_pp7.c | |
parent | 241f858cf4c3dd79fea3ccde2223fbe6fd738071 (diff) | |
download | ffmpeg-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.c | 2 |
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); |