diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-08 00:29:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-23 15:10:07 +0200 |
commit | 15871a90aa427158335a7214dc53e8c07cafd6d3 (patch) | |
tree | 0b753996a133a4ea6067233a1ffde3d11febcb52 | |
parent | 37f854f5b958486c2ca215cd54b60728d94e224f (diff) | |
download | ffmpeg-15871a90aa427158335a7214dc53e8c07cafd6d3.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.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++){ |