change to reflect new code
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@596 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
d556d15e7c
commit
3ee051544b
|
@ -673,7 +673,7 @@ static switch_status_t channel_write_frame(switch_core_session_t *session, switc
|
||||||
if (switch_test_flag(frame, SFF_CNG)) {
|
if (switch_test_flag(frame, SFF_CNG)) {
|
||||||
frame->data = data;
|
frame->data = data;
|
||||||
frame->buflen = sizeof(data);
|
frame->buflen = sizeof(data);
|
||||||
if ((frame->datalen = tech_pvt->write_codec.implementation->encoded_bytes_per_frame) > frame->buflen) {
|
if ((frame->datalen = tech_pvt->write_codec.implementation->encoded_bytes_per_packet) > frame->buflen) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
memset(data, 255, frame->datalen);
|
memset(data, 255, frame->datalen);
|
||||||
|
|
Loading…
Reference in New Issue