Avoid build warnings in the main code

This commit is contained in:
xia-chu
2024-03-30 14:59:28 +08:00
parent 0602cc0c0b
commit af3ef996b0
8 changed files with 17 additions and 17 deletions

View File

@@ -118,7 +118,7 @@ bool MP4Recorder::inputFrame(const Frame::Ptr &frame) {
//b帧情况下dts时间戳可能回退
_last_dts = MAX(frame->dts(), _last_dts);
}
auto duration = 5; // 默认至少一帧5ms
auto duration = 5u; // 默认至少一帧5ms
if (frame->dts() > 0 && frame->dts() > _last_dts) {
duration = MAX(duration, frame->dts() - _last_dts);
}