diff options
author | ferreum <code@ferreum.de> | 2023-08-13 13:16:26 +0200 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2023-09-20 14:36:23 +0200 |
commit | 0d64f795c7940d3a1383b936b5c0346ce74af912 (patch) | |
tree | 001868fe7d024540171f40c261ee23bf2463b4b4 /audio/filter | |
parent | 05395205ddab260f8ae6b7e41a68e2affaef4279 (diff) | |
download | mpv-0d64f795c7940d3a1383b936b5c0346ce74af912.tar.bz2 mpv-0d64f795c7940d3a1383b936b5c0346ce74af912.tar.xz |
af_scaletempo2: fix missing dereference when processing final packet
Missing dereference was not noticed because assigning 0 to pointer is
allowed.
Diffstat (limited to 'audio/filter')
-rw-r--r-- | audio/filter/af_scaletempo2_internals.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/filter/af_scaletempo2_internals.c b/audio/filter/af_scaletempo2_internals.c index 6cfa540e93..ccfa3aebcb 100644 --- a/audio/filter/af_scaletempo2_internals.c +++ b/audio/filter/af_scaletempo2_internals.c @@ -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; } } |