Fix frame copy for stereo mode in WebRTC-AEC2 (#3561)
This commit is contained in:
parent
ee37fc467b
commit
7c4035ba00
|
@ -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);
|
PJ_ASSERT_RETURN(echo && rec_frm && play_frm, PJ_EINVAL);
|
||||||
|
|
||||||
for (i = 0; i < echo->samples_per_frame;
|
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);
|
StreamConfig scfg(echo->clock_rate, echo->channel_count);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue