Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cubeb_resampler_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ template <typename T> class cubeb_resampler_speex_one_way : public processor {
int32_t resampled_frames_left =
samples_to_frames(resampling_out_buffer.length());
float input_frames_needed =
(output_frame_count - unresampled_frames_left) * resampling_ratio -
resampled_frames_left;
(output_frame_count - resampled_frames_left) * resampling_ratio -
unresampled_frames_left;
if (input_frames_needed < 0) {
return 0;
}
Expand Down