Skip to content

Commit

Permalink
jbuf: set start value for jb->faults
Browse files Browse the repository at this point in the history
This avoids that jb->min is reduced immediately after start in adaptive mode.
The user may set jb->min to some positive value if he expects that re-ordered
packets will occur. After the start of an incoming RTP stream the occurrence of
re-ordered packets should be observed before jb->min is reduced.
  • Loading branch information
cspiel1 committed Apr 1, 2022
1 parent 885d1c2 commit 19b6a9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jbuf/jbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ int jbuf_alloc(struct jbuf **jbp, uint32_t min, uint32_t max)
jb->jbtype = JBUF_FIXED;
jb->min = min;
jb->max = max;
jb->faults = JBUF_FAULT_HI / 2;

DEBUG_INFO("alloc: delay=%u-%u frames\n", min, max);

Expand Down

0 comments on commit 19b6a9e

Please sign in to comment.