mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-22 03:51:48 +00:00
FS-7083: fix divide by zero
This commit is contained in:
parent
0a0b9262b4
commit
0200bc1a02
@ -379,6 +379,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_read(switch_media_bug_t *b
|
|||||||
if (switch_test_flag(bug, SMBF_STEREO)) {
|
if (switch_test_flag(bug, SMBF_STEREO)) {
|
||||||
frame->datalen *= 2;
|
frame->datalen *= 2;
|
||||||
frame->channels = 2;
|
frame->channels = 2;
|
||||||
|
} else {
|
||||||
|
frame->channels = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(bug->session->recur_buffer, frame->data, frame->datalen);
|
memcpy(bug->session->recur_buffer, frame->data, frame->datalen);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user