Skip to content

Commit

Permalink
Fix seq rollover during probation
Browse files Browse the repository at this point in the history
  • Loading branch information
sauwming committed Aug 11, 2023
1 parent b8d227a commit 894fcca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pjmedia/src/pjmedia/rtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ void pjmedia_rtp_seq_update( pjmedia_rtp_seq_session *sess,

st.status.flag.probation = -1;

if (seq == sess->max_seq+ 1) {
if (seq == (pj_uint16_t)(sess->max_seq + 1)) {
/* packet is in sequence */
st.diff = 1;
sess->probation--;
Expand Down

0 comments on commit 894fcca

Please sign in to comment.