diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-05-11 18:52:33 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-05-11 20:14:46 +0200 |
commit | f0136502433d92ce5da3db9d21aa11573764eec3 (patch) | |
tree | db6b50801d366e6e5a905aa747da600f23dc52d5 | |
parent | 869c06886dfdbc5d4734bb8f4ee85f36b2f3aa2b (diff) | |
download | ffmpeg-f0136502433d92ce5da3db9d21aa11573764eec3.tar.gz |
avfilter/avf_showwaves: zero whole allocated chunk
-rw-r--r-- | libavfilter/avf_showwaves.c | 2 |
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; |