summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/ffmpeg/libswresample/dither.c
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/ffmpeg/libswresample/dither.c')
-rw-r--r--chromium/third_party/ffmpeg/libswresample/dither.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/third_party/ffmpeg/libswresample/dither.c b/chromium/third_party/ffmpeg/libswresample/dither.c
index 7cbe410557d..b8b592a7ce9 100644
--- a/chromium/third_party/ffmpeg/libswresample/dither.c
+++ b/chromium/third_party/ffmpeg/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++){