Skip to content
Snippets Groups Projects
Commit b39b392e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

rtp: do not assume all packets have a PTS

parent ed3db4c9
No related branches found
No related tags found
1 merge request!953RTP MPEG 1/2 payload formats
......@@ -77,7 +77,8 @@ static void vlc_rtp_es_id_send(struct vlc_rtp_es *es, block_t *block)
/* TODO: Don't set PCR here. Breaks multiple sources (in a session)
* and more importantly eventually multiple sessions. */
es_out_SetPCR(ei->out, block->i_pts);
if (block->i_pts != VLC_TICK_INVALID)
es_out_SetPCR(ei->out, block->i_pts);
es_out_Send(ei->out, ei->id, block);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment