mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/afir_template: skip useless moving of samples
This commit is contained in:
parent
bc1fc1be99
commit
54ebe1e8dc
@ -403,7 +403,8 @@ static int fn(fir_quantum)(AVFilterContext *ctx, AVFrame *out, int ch, int offse
|
||||
|
||||
seg->part_index[ch] = (seg->part_index[ch] + 1) % nb_partitions;
|
||||
|
||||
memmove(src, src + min_part_size, (seg->input_size - min_part_size) * sizeof(*src));
|
||||
if (part_size != min_part_size)
|
||||
memmove(src, src + min_part_size, (seg->input_size - min_part_size) * sizeof(*src));
|
||||
|
||||
fn(fir_fadd)(s, ptr, dst, nb_samples);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user