rtpjitterbuffer: don't calculate skew without rtptime

Skip trying to calculate the skew when we don't have an rtptime.
It causes problems when lost packet events are placed in the jitterbuffer.
This commit is contained in:
Wim Taymans 2013-09-26 16:20:04 +02:00
parent c1aae07909
commit d4b4b4e924

View file

@ -685,6 +685,9 @@ rtp_jitter_buffer_insert (RTPJitterBuffer * jbuf, RTPJitterBufferItem * item,
dts = item->dts; dts = item->dts;
rtptime = item->rtptime; rtptime = item->rtptime;
if (rtptime == -1)
goto append;
/* rtp time jumps are checked for during skew calculation, but bypassed /* rtp time jumps are checked for during skew calculation, but bypassed
* in other mode, so mind those here and reset jb if needed. * in other mode, so mind those here and reset jb if needed.
* Only reset if valid input time, which is likely for UDP input * Only reset if valid input time, which is likely for UDP input