update
Some checks are pending
Android / build (push) Waiting to run
CodeQL / Analyze (cpp) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
Docker / build (push) Waiting to run
Linux / build (push) Waiting to run
macOS / build (push) Waiting to run
Windows / build (push) Waiting to run

This commit is contained in:
weishao 2025-08-22 20:32:14 +08:00 committed by 夏楚
parent ceb78bd54c
commit 8bf64e0407

View File

@ -369,11 +369,9 @@ bool H265RtpEncoder::inputFrame(const Frame::Ptr &frame) {
GET_CONFIG(int,lowLatency,Rtp::kLowLatency);
if (lowLatency) { // 低延迟模式
if (_last_frame) {
// 先输出上一帧并根据时间戳决定是否设置mark位
inputFrame_l(_last_frame, _last_frame->pts() != frame->pts());
flush();
}
// 当前帧缓存起来等下一帧或flush时再输出
_last_frame = Frame::getCacheAbleFrame(frame);
inputFrame_l(frame, true);
} else {
if (_last_frame) {
// 如果时间戳发生了变化那么markbit才置true [AUTO-TRANSLATED:19b68429]