Commit 425a85df authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

RTP: avoid loosing the first received packet

parent 4e72534d
...@@ -268,6 +268,13 @@ rtp_receive (demux_t *demux, rtp_session_t *session, block_t *block) ...@@ -268,6 +268,13 @@ rtp_receive (demux_t *demux, rtp_session_t *session, block_t *block)
tab[session->srcc++] = src; tab[session->srcc++] = src;
} }
/* Be optimistic for the first packet. Certain codec, such as Vorbis
* do not like loosing the first packet(s), so we cannot just wait
* for proper sequence synchronization. And we don't want to assume that
* the sender starts at seq=0 either. */
if (src->blocks == NULL)
src->max_seq = seq - p_sys->max_dropout;
/* Check sequence number */ /* Check sequence number */
/* NOTE: the sequence number is per-source, /* NOTE: the sequence number is per-source,
* but is independent from the payload type. */ * but is independent from the payload type. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment