summaryrefslogtreecommitdiff
path: root/libswresample/dither.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-08 00:29:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-08 00:29:20 +0200
commita5290cb1ac047851563da7aca06569e3ada55f79 (patch)
tree9bde423ba444a6da446f54031199c15987c73156 /libswresample/dither.c
parentf9158b01d0f3effb58e87fb07db0382bc1e47de5 (diff)
swresample/dither: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/dither.c')
-rw-r--r--libswresample/dither.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/dither.c b/libswresample/dither.c
index 7cbe410557..b8b592a7ce 100644
--- a/libswresample/dither.c
+++ b/libswresample/dither.c
@@ -26,7 +26,7 @@
void swri_get_dither(SwrContext *s, void *dst, int len, unsigned seed, enum AVSampleFormat noise_fmt) {
double scale = s->dither.noise_scale;
#define TMP_EXTRA 2
- double *tmp = av_malloc((len + TMP_EXTRA) * sizeof(double));
+ double *tmp = av_malloc_array(len + TMP_EXTRA, sizeof(double));
int i;
for(i=0; i<len + TMP_EXTRA; i++){