rtp g711 encoder rtp not key pos avoid gop cache useless

This commit is contained in:
xiongguangjie 2024-04-16 19:58:06 +08:00
parent c341f8ebf6
commit 0b9be9d95d
1 changed files with 1 additions and 1 deletions

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;
}