mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 01:22:30 +00:00
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:
parent
05395205dd
commit
0d64f795c7
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user