You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
avfilter/vf_pp7: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -295,7 +295,7 @@ static int config_input(AVFilterLink *inlink)
|
|||||||
pp7->vsub = desc->log2_chroma_h;
|
pp7->vsub = desc->log2_chroma_h;
|
||||||
|
|
||||||
pp7->temp_stride = FFALIGN(inlink->w + 16, 16);
|
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)
|
if (!pp7->src)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|||||||
Reference in New Issue
Block a user