]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
change to reflect new code
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 20 Oct 2008 18:10:37 +0000 (18:10 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 20 Oct 2008 18:10:37 +0000 (18:10 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@596 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/mod_openzap/mod_openzap.c

index c602588fbf8e297bc49bb4306ef88ec6a6966022..d49775cd716bd7aa9c5656ae4fdb4f665e47f4fb 100644 (file)
@@ -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);