summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-05-11 18:52:33 +0200
committerPaul B Mahol <onemda@gmail.com>2023-05-11 20:14:46 +0200
commitf0136502433d92ce5da3db9d21aa11573764eec3 (patch)
treedb6b50801d366e6e5a905aa747da600f23dc52d5 /libavfilter
parent869c06886dfdbc5d4734bb8f4ee85f36b2f3aa2b (diff)
downloadffmpeg-f0136502433d92ce5da3db9d21aa11573764eec3.tar.gz
avfilter/avf_showwaves: zero whole allocated chunk
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/avf_showwaves.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showwaves.c b/libavfilter/avf_showwaves.c
index 76399ab13d..3db192a835 100644
--- a/libavfilter/avf_showwaves.c
+++ b/libavfilter/avf_showwaves.c
@@ -591,7 +591,7 @@ static int push_single_pic(AVFilterLink *outlink)
av_log(ctx, AV_LOG_DEBUG, "Create frame averaging %"PRId64" samples per column\n", column_max_samples);
- memset(sum, 0, nb_channels);
+ memset(sum, 0, nb_channels * sizeof(*sum));
for (node = showwaves->audio_frames; node; node = node->next) {
int i;