You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/avf_showwaves: zero whole allocated chunk
This commit is contained in:
@@ -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);
|
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) {
|
for (node = showwaves->audio_frames; node; node = node->next) {
|
||||||
int i;
|
int i;
|
||||||
|
Reference in New Issue
Block a user