X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_deshake.c;h=50aa451a3230c330c5576c8a694efcb10313f49c;hb=6be71e9955954422227f9691b4f5367a7169b099;hp=c68de3653d76a501f6e2384ff5f6f9a7ea2e31f1;hpb=57fa9e97424de601a5f10ad7bfc6ce48597c783f;p=ffmpeg diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c index c68de3653d7..50aa451a323 100644 --- a/libavfilter/vf_deshake.c +++ b/libavfilter/vf_deshake.c @@ -249,7 +249,7 @@ static void find_motion(DeshakeContext *deshake, uint8_t *src1, uint8_t *src2, 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;