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
4277fe8eed
commit
843a36f74d
|
@ -673,7 +673,7 @@ static switch_status_t channel_write_frame(switch_core_session_t *session, switc
|
|||
if (switch_test_flag(frame, SFF_CNG)) {
|
||||
frame->data = 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;
|
||||
}
|
||||
memset(data, 255, frame->datalen);
|
||||
|
|
Loading…
Reference in New Issue