rtp g711 encoder rtp not key pos avoid gop cache useless (#3476)

g711 rtp encoder input packet not key pos , avoid gop cache useless, fix
the bug
This commit is contained in:
xiongguangjie 2024-04-16 22:34:54 +08:00 committed by GitHub
parent c341f8ebf6
commit 4aa330ab82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ bool G711RtpEncoder::inputFrame(const Frame::Ptr &frame) {
const size_t rtp_size = max_size;
n++;
stamp += _pkt_dur_ms;
RtpCodec::inputRtp(getRtpInfo().makeRtp(TrackAudio, ptr, rtp_size, mark, stamp), true);
RtpCodec::inputRtp(getRtpInfo().makeRtp(TrackAudio, ptr, rtp_size, mark, stamp), false);
ptr += rtp_size;
remain_size -= rtp_size;
}