int contrast;
int pos;
- double *angles = av_malloc(sizeof(*angles) * width * height / (16 * deshake->blocksize));
+ double *angles = av_malloc_array(width * height / (16 * deshake->blocksize), sizeof(*angles));
int center_x = 0, center_y = 0;
double p_x, p_y;