diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-01 05:50:53 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-01 05:50:53 +0400 |
commit | a97137e9486964918a71f1a760cdcc297bf61b59 (patch) | |
tree | 50066d81fa34487a88c7f61ff9f386a1df9d8bc2 /libavfilter/f_ebur128.c | |
parent | 7faa7d3d42af12a60a4db7ecba165369ec5795d7 (diff) |
avfilter/f_ebur128: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/f_ebur128.c')
-rw-r--r-- | libavfilter/f_ebur128.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c index 2e510dbea3..a02cf28723 100644 --- a/libavfilter/f_ebur128.c +++ b/libavfilter/f_ebur128.c @@ -412,7 +412,7 @@ static int config_audio_output(AVFilterLink *outlink) if (ebur128->peak_mode & PEAK_MODE_TRUE_PEAKS) { int ret; - ebur128->swr_buf = av_malloc(19200 * nb_channels * sizeof(double)); + ebur128->swr_buf = av_malloc_array(nb_channels, 19200 * sizeof(double)); ebur128->true_peaks = av_calloc(nb_channels, sizeof(*ebur128->true_peaks)); ebur128->true_peaks_per_frame = av_calloc(nb_channels, sizeof(*ebur128->true_peaks_per_frame)); ebur128->swr_ctx = swr_alloc(); |