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
6 changes: 4 additions & 2 deletions asrc/asrc_pair.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,11 @@ void asrc_pair_convert_s16(asrc_pair *pair, const int16_t *src, unsigned int src
buf_info.output_buffer_vaddr, buf_info.output_buffer_length);

s += in_len;
src_left -= in_len;
src_left = (src_left > in_len) ? src_left - in_len : 0;
d += buf_info.output_buffer_length;
dst_left -= buf_info.output_buffer_length;
dst_left = (dst_left > buf_info.output_buffer_length)
? dst_left - buf_info.output_buffer_length
: 0;
//printf("[%d/%d]\n", buf_info.output_buffer_length, out_len);
}

Expand Down