aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-08 00:29:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-22 00:21:28 +0200
commit2880de35b53d3ff677db97bcd089ecbc51ec0694 (patch)
tree7a40b1ad0e3d08ddff6e616bbdf4eba096487364
parent0143eb91098f7de89ba5f6885a91f0aa3e6e34ed (diff)
downloadffmpeg-2880de35b53d3ff677db97bcd089ecbc51ec0694.tar.gz
swresample/dither: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit a5290cb1ac047851563da7aca06569e3ada55f79) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libswresample/dither.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/dither.c b/libswresample/dither.c
index 79113f4c23..28cfbdd501 100644
--- a/libswresample/dither.c
+++ b/libswresample/dither.c
@@ -24,7 +24,7 @@
void swri_get_dither(SwrContext *s, void *dst, int len, unsigned seed, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt) {
double scale = 0;
#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;
out_fmt = av_get_packed_sample_fmt(out_fmt);