From 018041f150dc6bfe38cc818db5904db98ba9b4a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Mon, 8 Dec 2025 03:57:25 +0100 Subject: [PATCH] swresample/soxr_resample: pass initialized data to soxr_process() in flush() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kacper Michajłow --- libswresample/soxr_resample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswresample/soxr_resample.c b/libswresample/soxr_resample.c index cc5b4db5d4..b71ece61f8 100644 --- a/libswresample/soxr_resample.c +++ b/libswresample/soxr_resample.c @@ -72,7 +72,7 @@ static int flush(struct SwrContext *s){ soxr_process((soxr_t)s->resample, NULL, 0, NULL, NULL, 0, NULL); { - float f; + float f = 0; size_t idone, odone; soxr_process((soxr_t)s->resample, &f, 0, &idone, &f, 0, &odone); s->delayed_samples_fixup -= soxr_delay((soxr_t)s->resample);