icecat: add release icecat-140.10.1-1gnu1 for ecne

This commit is contained in:
Ark74 2026-05-04 16:58:41 -06:00
parent a5f93cb214
commit ff85d7c623
1256 changed files with 63469 additions and 24141 deletions

View file

@ -0,0 +1,19 @@
diff --git a/src/cubeb_resampler_internal.h b/src/cubeb_resampler_internal.h
index 08e019c610..dfc93f15b4 100644
--- a/src/cubeb_resampler_internal.h
+++ b/src/cubeb_resampler_internal.h
@@ -211,9 +211,11 @@
const size_t LATENCY_SAMPLES = 8192;
T input_buffer[LATENCY_SAMPLES] = {};
T output_buffer[LATENCY_SAMPLES] = {};
- uint32_t input_frame_count = input_latency;
- uint32_t output_frame_count = LATENCY_SAMPLES;
- assert(input_latency * channels <= LATENCY_SAMPLES);
+ const uint32_t latency_frames =
+ LATENCY_SAMPLES / std::max<uint32_t>(channels, 1);
+ uint32_t input_frame_count = std::min(input_latency, latency_frames);
+ uint32_t output_frame_count = latency_frames;
+ assert(output_frame_count * channels <= LATENCY_SAMPLES);
speex_resample(input_buffer, &input_frame_count, output_buffer,
&output_frame_count);
}