From 9106dde23ec59484c86b0d4757304e24fabe4229 Mon Sep 17 00:00:00 2001 From: xiongguangjie Date: Wed, 19 Jun 2024 18:42:06 +0800 Subject: [PATCH] g711 rtp encoder rtp mark set false compitable for freeswitch (#3647) --- ext-codec/G711Rtp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext-codec/G711Rtp.cpp b/ext-codec/G711Rtp.cpp index 766d600f..7eb3ff9d 100644 --- a/ext-codec/G711Rtp.cpp +++ b/ext-codec/G711Rtp.cpp @@ -40,7 +40,7 @@ bool G711RtpEncoder::inputFrame(const Frame::Ptr &frame) { auto remain_size = len; size_t max_size = 160 * _channels * _pkt_dur_ms / 20; // 20 ms per 160 byte size_t n = 0; - bool mark = true; + bool mark = false; while (remain_size >= max_size) { assert(remain_size >= max_size); const size_t rtp_size = max_size;