Browse code

avfilter/vf_pp7: use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2015/01/11 00:03:46
Showing 1 changed files
... ...
@@ -295,7 +295,7 @@ static int config_input(AVFilterLink *inlink)
295 295
     pp7->vsub = desc->log2_chroma_h;
296 296
 
297 297
     pp7->temp_stride = FFALIGN(inlink->w + 16, 16);
298
-    pp7->src = av_malloc(pp7->temp_stride * (h + 8) * sizeof(uint8_t));
298
+    pp7->src = av_malloc_array(pp7->temp_stride,  (h + 8) * sizeof(uint8_t));
299 299
 
300 300
     if (!pp7->src)
301 301
         return AVERROR(ENOMEM);