diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-12-20 16:18:07 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-12-22 17:09:15 +0100 |
commit | bc1fc1be993b70ae0ad7ae322239547a29b8b0d3 (patch) | |
tree | acb7040146704de8d87895380234d602ec3639c1 /libavfilter/afir_template.c | |
parent | eef763c7057a7f5f4b7dae7855d07b2a6da8b537 (diff) | |
download | ffmpeg-bc1fc1be993b70ae0ad7ae322239547a29b8b0d3.tar.gz |
avfilter/afir_template: stop using hack to zero out data
Diffstat (limited to 'libavfilter/afir_template.c')
-rw-r--r-- | libavfilter/afir_template.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/afir_template.c b/libavfilter/afir_template.c index e5eae4b3e2..8766119d39 100644 --- a/libavfilter/afir_template.c +++ b/libavfilter/afir_template.c @@ -59,7 +59,8 @@ static void fn(draw_response)(AVFilterContext *ctx, AVFrame *out) char text[32]; int channel, i, x; - memset(out->data[0], 0, s->h * out->linesize[0]); + for (int y = 0; y < s->h; y++) + memset(out->data[0] + y * out->linesize[0], 0, s->w * 4); phase = av_malloc_array(s->w, sizeof(*phase)); mag = av_malloc_array(s->w, sizeof(*mag)); |