[FFmpeg-devel] [PATCH v2 1/4] avfilter/af_silencedetect: change parameters order for av_malllocz_array
lance.lmwang at gmail.com
lance.lmwang at gmail.com
Mon Sep 30 18:20:06 EEST 2019
From: Limin Wang <lance.lmwang at gmail.com>
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
libavfilter/af_silencedetect.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/af_silencedetect.c b/libavfilter/af_silencedetect.c
index 3a71f39..c31109f 100644
--- a/libavfilter/af_silencedetect.c
+++ b/libavfilter/af_silencedetect.c
@@ -143,10 +143,10 @@ static int config_input(AVFilterLink *inlink)
s->channels = inlink->channels;
s->independent_channels = s->mono ? s->channels : 1;
- s->nb_null_samples = av_mallocz_array(sizeof(*s->nb_null_samples), s->independent_channels);
+ s->nb_null_samples = av_mallocz_array(s->independent_channels, sizeof(*s->nb_null_samples));
if (!s->nb_null_samples)
return AVERROR(ENOMEM);
- s->start = av_malloc_array(sizeof(*s->start), s->independent_channels);
+ s->start = av_malloc_array(s->independent_channels, sizeof(*s->start));
if (!s->start)
return AVERROR(ENOMEM);
for (c = 0; c < s->independent_channels; c++)
--
2.6.4
More information about the ffmpeg-devel
mailing list