g711 rtp encoder rtp mark set false compitable for freeswitch (#3647)

This commit is contained in:
xiongguangjie 2024-06-19 18:42:06 +08:00 committed by GitHub
parent 2f6723f602
commit 9106dde23e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ bool G711RtpEncoder::inputFrame(const Frame::Ptr &frame) {
auto remain_size = len; auto remain_size = len;
size_t max_size = 160 * _channels * _pkt_dur_ms / 20; // 20 ms per 160 byte size_t max_size = 160 * _channels * _pkt_dur_ms / 20; // 20 ms per 160 byte
size_t n = 0; size_t n = 0;
bool mark = true; bool mark = false;
while (remain_size >= max_size) { while (remain_size >= max_size) {
assert(remain_size >= max_size); assert(remain_size >= max_size);
const size_t rtp_size = max_size; const size_t rtp_size = max_size;