From 773c5e2ae0337013732321c871c287aef8436c32 Mon Sep 17 00:00:00 2001 From: ferreum Date: Mon, 22 Apr 2024 18:16:02 +0200 Subject: 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. --- audio/filter/af_scaletempo2_internals.h | 1 - 1 file changed, 1 deletion(-) (limited to 'audio/filter/af_scaletempo2_internals.h') 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 -- cgit v1.2.3