修复编译警告

This commit is contained in:
xia-chu
2026-01-08 21:18:00 +08:00
parent 48c37d4f46
commit a59809047c
12 changed files with 18 additions and 19 deletions

View File

@@ -334,7 +334,7 @@ bool VP8RtpEncoder::inputFrame(const Frame::Ptr &frame) {
bool key = frame->keyFrame();
bool mark = false;
for (size_t pos = 0; pos < len; pos += pdu_size) {
if (len - pos <= pdu_size) {
if (static_cast<int>(len - pos) <= pdu_size) {
pdu_size = len - pos;
mark = true;
}