diff options
author | ferreum <code@ferreum.de> | 2024-04-22 18:16:02 +0200 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-04-27 01:05:07 +0200 |
commit | 773c5e2ae0337013732321c871c287aef8436c32 (patch) | |
tree | c33d9451675e97becee326be905a55a39ca9252b /audio/filter/af_scaletempo2_internals.h | |
parent | 190b15c82797024255c2f43a2faf1a170f2063bd (diff) | |
download | mpv-773c5e2ae0337013732321c871c287aef8436c32.tar.bz2 mpv-773c5e2ae0337013732321c871c287aef8436c32.tar.xz |
af_scaletempo2: migrate to internals to talloc
Fixes corrupted audio after resize_input_buffer; realloc_2d did not move
data to new location. Rather than reimplementing more allocator logic,
migrate internals to use talloc and grow buffer with realloc.
Diffstat (limited to 'audio/filter/af_scaletempo2_internals.h')
-rw-r--r-- | audio/filter/af_scaletempo2_internals.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/audio/filter/af_scaletempo2_internals.h b/audio/filter/af_scaletempo2_internals.h index 6c3c94c0a9..254d0a7704 100644 --- a/audio/filter/af_scaletempo2_internals.h +++ b/audio/filter/af_scaletempo2_internals.h @@ -110,7 +110,6 @@ struct mp_scaletempo2 { float **target_block; // Buffered audio data. float **input_buffer; - int input_buffer_size; int input_buffer_frames; // How many frames in |input_buffer| need to be flushed by padding with // silence to process the final packet. While this is nonzero, the filter |