mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-14 03:11:20 +00:00
avfilter/afir_template: stop using hack to zero out data
This commit is contained in:
parent
eef763c705
commit
bc1fc1be99
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user