Fix frame copy for stereo mode in WebRTC-AEC2 (#3561)

This commit is contained in:
Nanang Izzuddin 2023-05-15 08:21:27 +07:00 committed by GitHub
parent ee37fc467b
commit 7c4035ba00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ PJ_DEF(pj_status_t) webrtc_aec3_cancel_echo(void *state,
PJ_ASSERT_RETURN(echo && rec_frm && play_frm, PJ_EINVAL);
for (i = 0; i < echo->samples_per_frame;
i += echo->frame_length)
i += (echo->frame_length * echo->channel_count))
{
StreamConfig scfg(echo->clock_rate, echo->channel_count);