af_scaletempo2: fix missing dereference when processing final packet

Missing dereference was not noticed because assigning 0 to pointer is
allowed.
This commit is contained in:
ferreum 2023-08-13 13:16:26 +02:00 committed by Niklas Haas
parent 05395205dd
commit 0d64f795c7
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ int mp_scaletempo2_fill_input_buffer(struct mp_scaletempo2 *p,
memcpy(p->input_buffer[i] + p->input_buffer_frames,
planes[i], read * sizeof(float));
for (int j = read; j < total_fill; ++j) {
p->input_buffer[p->input_buffer_frames + j] = 0;
p->input_buffer[i][p->input_buffer_frames + j] = 0.0f;
}
}