正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -92,7 +92,7 @@ int SrsRtmpJitter::correct(SrsSharedPtrMessage* msg, int tba, int tbv, SrsRtmpJi | @@ -92,7 +92,7 @@ int SrsRtmpJitter::correct(SrsSharedPtrMessage* msg, int tba, int tbv, SrsRtmpJi | ||
92 | if (ag == SrsRtmpJitterAlgorithmZERO) { | 92 | if (ag == SrsRtmpJitterAlgorithmZERO) { |
93 | // for the first time, last_pkt_correct_time is zero. | 93 | // for the first time, last_pkt_correct_time is zero. |
94 | // while when timestamp overflow, the timestamp become smaller, reset the last_pkt_correct_time. | 94 | // while when timestamp overflow, the timestamp become smaller, reset the last_pkt_correct_time. |
95 | - if (last_pkt_correct_time <= 0 || last_pkt_correct_time > msg->timestamp) { | 95 | + if (last_pkt_correct_time <= 0 || msg->timestamp < last_pkt_correct_time) { |
96 | last_pkt_correct_time = msg->timestamp; | 96 | last_pkt_correct_time = msg->timestamp; |
97 | } | 97 | } |
98 | msg->timestamp -= last_pkt_correct_time; | 98 | msg->timestamp -= last_pkt_correct_time; |
-
请 注册 或 登录 后发表评论