]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11230: [core] Fix bad rtp timestamps triggered by cng/missed packet detection
authorMike Jerris <mike@jerris.com>
Fri, 13 Jul 2018 19:18:35 +0000 (15:18 -0400)
committerMike Jerris <mike@jerris.com>
Fri, 13 Jul 2018 19:18:35 +0000 (15:18 -0400)
src/switch_core_io.c

index 0ccb215f269f646bf439e2f4e57a1eae29b5e379..7560465187243af51e4f726187f018d13811a1e3 100644 (file)
@@ -417,7 +417,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
                        switch_set_flag(session, SSF_WARN_TRANSCODE);
                }
 
-               if (read_frame->codec || is_cng) {
+               if (read_frame->codec || (is_cng && session->plc)) {
                        session->raw_read_frame.datalen = session->raw_read_frame.buflen;
 
                        if (is_cng) {