Commit c6d98971 authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: dash: handle nonzero starting live pcr

parent 36145354
......@@ -192,7 +192,10 @@ static int Demux(demux_t *p_demux)
case Stream::status_buffering:
case Stream::status_demuxed:
p_sys->i_nzpcr += DEMUX_INCREMENT;
if(p_sys->i_nzpcr == VLC_TS_INVALID)
p_sys->i_nzpcr = p_sys->p_dashManager->getPCR();
p_sys->i_nzpcr += DEMUX_INCREMENT;
int group = p_sys->p_dashManager->getGroup();
es_out_Control(p_demux->out, ES_OUT_SET_GROUP_PCR, group, VLC_TS_0 + p_sys->i_nzpcr);
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