Commit 1673436d authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_pp7: use av_malloc_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 241f858c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment