1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-27 07:40:36 +02:00

avfilter/afir_template: stop using hack to zero out data

This commit is contained in:
Paul B Mahol 2022-12-20 16:18:07 +01:00
parent eef763c705
commit bc1fc1be99

View File

@ -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));