1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avfilter/afir_template: reduce memset overhead a little

This commit is contained in:
Paul B Mahol 2022-12-25 10:24:07 +01:00
parent 8906145cdf
commit eaba6bfc51

View File

@ -279,13 +279,13 @@ static void fn(convert_channel)(AVFilterContext *ctx, AudioFIRContext *s, int ch
av_log(ctx, AV_LOG_DEBUG, "channel: %d\n", ch);
memset(tempin, 0, sizeof(*tempin) * seg->fft_length);
memset(tempin + size, 0, sizeof(*tempin) * (seg->block_size - size));
memcpy(tempin, time + seg->input_offset + coeff_partition * seg->part_size,
size * sizeof(*tempin));
seg->ctx_fn(seg->ctx[ch], tempout, tempin, sizeof(*tempin));
memcpy(coeff + coffset, tempout, (seg->part_size + 1) * sizeof(*coeff));
memcpy(coeff + coffset, tempout, seg->coeff_size * sizeof(*coeff));
av_log(ctx, AV_LOG_DEBUG, "nb_partitions: %d\n", seg->nb_partitions);
av_log(ctx, AV_LOG_DEBUG, "partition size: %d\n", seg->part_size);