Browse Source

swresample/dither: use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
a5290cb1ac
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libswresample/dither.c

+ 1
- 1
libswresample/dither.c View File

@@ -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++){


Loading…
Cancel
Save