swresample/soxr_resample: pass initialized data to soxr_process() in flush()

Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
Kacper Michajłow
2025-12-08 03:57:25 +01:00
committed by James Almer
parent 1f7182a991
commit 018041f150

View File

@@ -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);