summaryrefslogtreecommitdiff
path: root/libavfilter/vf_deshake.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-11 15:30:41 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-11 15:30:41 +0200
commitbe55518fdbdf8579ea91be1fb1db08a5a7028206 (patch)
treee8a0c8b57c6145d7603f5d8acccabaeedf47fc8a /libavfilter/vf_deshake.c
parent4932b1e8b8524788e29211fe0009219eae44acd7 (diff)
avfilter/vf_deshake: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_deshake.c')
-rw-r--r--libavfilter/vf_deshake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index c68de3653d..50aa451a32 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;