diff options
author | Michael Niedermayer <[email protected]> | 2014-04-08 00:29:06 +0200 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2014-04-10 04:53:00 +0200 |
commit | d20ac551a8617533279b8b301f2749e8e5890848 (patch) | |
tree | 571d5e3f602162e87bde06c87a77f8d782897306 | |
parent | 352b0969e23c83074cb8bfb4fb268df45848a983 (diff) |
swresample/dither: use av_malloc_array()
Signed-off-by: Michael Niedermayer <[email protected]>
(cherry picked from commit a5290cb1ac047851563da7aca06569e3ada55f79)
Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r-- | libswresample/dither.c | 2 |
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++){ |