mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
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:
parent
c341f8ebf6
commit
4aa330ab82
@ -46,7 +46,7 @@ bool G711RtpEncoder::inputFrame(const Frame::Ptr &frame) {
|
|||||||
const size_t rtp_size = max_size;
|
const size_t rtp_size = max_size;
|
||||||
n++;
|
n++;
|
||||||
stamp += _pkt_dur_ms;
|
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;
|
ptr += rtp_size;
|
||||||
remain_size -= rtp_size;
|
remain_size -= rtp_size;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user